discord_bot/commands/.example
SileNce5k c51a4fa976
Pass objects on command.execute
Pass objects instead of using a switch statement.
Now I don't have to restart the bot whenever I add a new command
that needs specific arguments other than 'message'.
2021-03-09 18:50:27 +01:00

7 lines
No EOL
115 B
Text

module.exports = {
name: 'example name',
description: 'example description',
execute({message}) {
//code
}
};