Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement a command handler instead of if-else chain #2

Open
antoniolofiego opened this issue Mar 23, 2021 · 0 comments
Open

Implement a command handler instead of if-else chain #2

antoniolofiego opened this issue Mar 23, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@antoniolofiego
Copy link
Collaborator

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/

@antoniolofiego antoniolofiego added the enhancement New feature or request label Mar 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant