You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to account for a growing number of commands, we should refactor the current code to be handled by a command handler. Currently there are only 3 commands ($help, $logday, $getlogs), but as new features are implemented it becomes cumbersome to maintain all the commands in a single event listener.
In order to account for a growing number of commands, we should refactor the current code to be handled by a command handler. Currently there are only 3 commands ($help, $logday, $getlogs), but as new features are implemented it becomes cumbersome to maintain all the commands in a single event listener.
A guide on how to implement this in Discord.js:
https://discordjs.guide/command-handling/
The text was updated successfully, but these errors were encountered: