Skip to content
This repository was archived by the owner on Aug 10, 2018. It is now read-only.

Deku's Command Standard (DCS)

Pedro Fracassi edited this page Nov 4, 2017 · 1 revision

All of Deku's commands should look the same. This means:

  • Command files should export an class extending the main Command class, the exported class should have an method called run, that takes message, args, commandLang, databases and lang respectively as arguments.
  • Everything should be inside embeds.
  • Commands should have a variable called name defined in the constructor.
  • Embeds should be created using client.getDekuEmbed(message)
  • Hardcoded strings should be translatable and written in english first. This means that you should add the strings to ./translation/en_US.json inside the commands object. Then you'll use commandLang.<string_name> for strings.
  • If the command makes an API request, you should channel.startTyping() when the request is made and channel.stopTyping() before the command reply is sent.
Clone this wiki locally