A Discord bot for the PMMP community, originally made for the BoxOfDevs Discord.
- Complete refactoring
- Organise code into seperate classes
- Use ES modules instead of CommonJS module format
- Use
node-fetchinstead ofrequest - Use custom command handler instead of switch/case
- Use async/await instead of Promises
- More robust error handling
- Responses are now sent as proper replies
- Bot now responds to DMs
- Commands:
- Added slash commands
- Deprecated prefixed commands
githubcommand added- Sends the same line preview as GitHub links in regular messages
- Responds with an error message instead of silently failing like the automatic preview
- Improvements: (apply to the old automatic line preview as well)
- Uses embed for more possible characters
- Support for selection of columns added
- Some bugfixes
announcecommand added- Used by the bot administrator to notify all servers about updates
helprewrite- can now get detailed help for individual commands
- is now automatically generated from the individual command data
channelscommand now displays the new text chat in voice channelsscommand now shows the authormakesofecommand now accepts hexadecimal color codes with or without#evalcommand does not delete errors anymoresaycommand has been removedaicommand has been removed- All responses regarding wrong usage now look consistent
- Some command outputs may have changed slightly
- Config changes
- JavaScript config instead of
config.jsonbecause it's easier to load with ES-modules syntax - Configuration values can now be given using environment variables, defaults set in
defaults.js- for the Docker image in
defaults.docker.js
- for the Docker image in
- Constants like the reaction alphabet are no longer in the config file
- JavaScript config instead of
- Updated all dependencies