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-fetch
instead 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
github
command 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
announce
command added- Used by the bot administrator to notify all servers about updates
help
rewrite- can now get detailed help for individual commands
- is now automatically generated from the individual command data
channels
command now displays the new text chat in voice channelss
command now shows the authormakesofe
command now accepts hexadecimal color codes with or without#
eval
command does not delete errors anymoresay
command has been removedai
command 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.json
because 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