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

Handle commands from Admin #8

Closed
Katreque opened this issue Mar 19, 2021 · 4 comments
Closed

Handle commands from Admin #8

Katreque opened this issue Mar 19, 2021 · 4 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Katreque
Copy link
Owner

Create a command handler to the bot.

  • Check the bot prefix in the .env.
  • Detect the bot commands.
  • Only execute commands if the user has admin privileges.
@Katreque Katreque added enhancement New feature or request good first issue Good for newcomers labels Mar 19, 2021
@Katreque
Copy link
Owner Author

Reference: https://discordjs.guide/command-handling

This was referenced Mar 20, 2021
@InternetRamen
Copy link

I'm down to do this :)

@InternetRamen
Copy link

#12

@Katreque
Copy link
Owner Author

Thanks for the PR @InternetRamen. :)

We don't want to import the functionalities through file reading. The handlers should detect the command and its args and use CommonJS modules to call the right methods.

@gpcalmeida gpcalmeida self-assigned this Mar 22, 2021
@gpcalmeida gpcalmeida mentioned this issue Mar 23, 2021
gpcalmeida added a commit that referenced this issue 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 good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants