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'.
7 lines
No EOL
115 B
Text
7 lines
No EOL
115 B
Text
module.exports = {
|
|
name: 'example name',
|
|
description: 'example description',
|
|
execute({message}) {
|
|
//code
|
|
}
|
|
}; |