added welcome-leave commands and updated activitytypes

This commit is contained in:
2025-10-03 18:00:47 -04:00
parent 9bc7a5e6b8
commit 524a6cc633
11 changed files with 258 additions and 30 deletions

View File

@@ -62,6 +62,9 @@
- [x] Implement event handler
- [x] Set bot status on ready event
- [x] Automatically register slash commands on server join.
- [x] On startup, automatically register all slash commands and remove any obsolete commands.
- [x] Add a mechanism to enable or disable commands from being registered and displayed.
- [x] In `ready.js`, set the bot's activity to change every 3 seconds with the following streaming activities: "Watch EhChad Live!", "Follow EhChad!", "/help", and "EhChadServices", all pointing to `https://twitch.tv/ehchad`.
## Features
- [x] **Welcome/Leave Messages**
@@ -79,3 +82,19 @@
- [x] **Bot Integration:**
- [x] Connect frontend settings to the backend.
- [x] Implement bot logic to send welcome/leave messages based on server settings.
- [x] **Slash Command Integration:**
- [x] ~~Create a `/config-welcome` slash command.~~
- [x] ~~Add a subcommand to `set-channel` for welcome messages.~~
- [x] ~~Add a subcommand to `set-message` with options for default and custom messages.~~
- [x] ~~Add a subcommand to `disable` welcome messages.~~
- [x] ~~Create a `/config-leave` slash command.~~
- [x] ~~Add a subcommand to `set-channel` for leave messages.~~
- [x] ~~Add a subcommand to `set-message` with options for default and custom messages.~~
- [x] ~~Add a subcommand to `disable` leave messages.~~
- [x] ~~Create a `/view-config` slash command to display the current welcome and leave channels.~~
- [ ] Refactor `/config-welcome` to `/setup-welcome` with interactive setup for channel and message.
- [ ] Refactor `/config-leave` to `/setup-leave` with interactive setup for channel and message.
- [ ] Rename `/view-config` to `/view-welcome-leave`.
- [x] Ensure settings updated via slash commands are reflected on the frontend.
- [x] Ensure settings updated via the frontend are reflected in the bot's behavior.
- [x] Persist the selected message option (default or custom) for welcome and leave messages.