ui updates and bot updates. new commands and command handler
This commit is contained in:
33
checklist.md
33
checklist.md
@@ -82,6 +82,8 @@
|
||||
- [x] **Bot Integration:**
|
||||
- [x] Connect frontend settings to the backend.
|
||||
- [x] Implement bot logic to send welcome/leave messages based on server settings.
|
||||
- [x] Fix: Leave messages now fetch channel reliably, ensure bot has permissions (ViewChannel/SendMessages), and use mention-friendly user formatting. Added debug logging.
|
||||
- [x] Fix: Removed verbose console logging of incoming settings and messages in backend and bot (no sensitive or noisy payloads logged).
|
||||
- [x] **Slash Command Integration:**
|
||||
- [x] ~~Create a `/config-welcome` slash command.~~
|
||||
- [x] ~~Add a subcommand to `set-channel` for welcome messages.~~
|
||||
@@ -92,9 +94,32 @@
|
||||
- [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] Refactor `/config-welcome` to `/setup-welcome` with interactive setup for channel and message.
|
||||
- [x] Refactor `/config-leave` to `/setup-leave` with interactive setup for channel and message.
|
||||
- [x] 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.
|
||||
- [x] **New:** Interactive setup should prompt for channel, then for message (default or custom, matching frontend options).
|
||||
- [x] Persist the selected message option (default or custom) for welcome and leave messages.
|
||||
- [x] Added `/view-autorole` slash command to report autorole status and selected role.
|
||||
- [x] Added `/manage-commands` admin slash command to list and toggle commands per-server (persists toggles to backend DB).
|
||||
- [x] Refactor: `/manage-commands` now renders a single message with toggle buttons reflecting each command's current state and updates in-place.
|
||||
- [x] Ensure `/manage-commands` lists all loaded commands (including non-slash/simple commands like `ping`) and will include future commands automatically.
|
||||
- [x] Ensure the `/help` command is locked (protected) and cannot be disabled via `/manage-commands`.
|
||||
- [x] Add a Help tab in the frontend Server Settings that lists all bot commands and their descriptions per-server.
|
||||
- [x] Move Help to a dedicated page within the server dashboard and add a top NavBar (collapsible) with Dashboard, Discord!, Contact, and Help (when on a server) buttons. Ensure Help page has a back arrow to return to the Commands section.
|
||||
- [x] Added `/help` slash command that lists commands and their descriptions and shows per-server enable/disable status.
|
||||
- [x] **Autorole**
|
||||
- [x] Add "Autorole" section to server settings.
|
||||
- [x] **Backend:**
|
||||
- [x] Create API endpoint to get/set autorole settings.
|
||||
- [x] Create API endpoint to fetch server roles.
|
||||
- [x] **Bot Integration:**
|
||||
- [x] Create a `/setup-autorole` slash command to enable/disable and select a role.
|
||||
- [x] Update `guildMemberAdd` event to assign the selected role on join.
|
||||
- [x] **Frontend:**
|
||||
- [x] Add toggle to enable/disable autorole.
|
||||
- [x] Add dropdown to select a role for autorole.
|
||||
- [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] Fix: Autorole dropdown excludes @everyone and shows only roles the bot can manage. Assignment is validated at join.
|
||||
Reference in New Issue
Block a user