Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
TL;DR
Fixed all existing slash commands except
/start-verification
,/add-members
, and/check-email
+ migratedrole-selector
command to slash command.All commands with persistent embeds/messages now also save info to Firebase so that they can continue to be used if the bot is restarted.
Description
/clear-chat
- fix keep_pinned option/self-care
- fix self-care tip loading and message posting/start-report
- fix message sending/discord-contests
- fix question loading and posting/load-question
- fix question saving/start-mentor-cave
- add message ID saving functionality/role-selector
- converted from prefix command + add message ID saving functionalitySchema Changes
New collection:
SavedMessages
role-selector
New Collection:
Questions
Questions can be loaded with the
/load-question
command where a json doc containing an array of objects with the above schema is uploaded.New Collection:
QuestionsLeaderboard
New Collection:
Reminders
Why
This allows logs to actually use critical Discord bot commands + more easily recover if the bot crashes (no more rerunning all the commands)
User Changes
No changes to the user experience - things work now :)
Tests Done
For each command, the functionality was tested + if containing persistent info, it was also tested that functionality continued to work after restarting the bot.
Breaking Changes
Commands were converted from referencing MongoDB info to referencing Firebase info.