Katreque / bottotherobot

Botto is a Discord bot template made to help you build your community from scratch, with the tools you need.
BSD 3-Clause "New" or "Revised" License
4 stars 1 forks source link

Handle commands from Admin #8

Closed Katreque closed 3 years ago

Katreque commented 3 years ago

Create a command handler to the bot.

Katreque commented 3 years ago

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

InternetRamen commented 3 years ago

I'm down to do this :)

InternetRamen commented 3 years ago

12

Katreque commented 3 years ago

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.