Creating a new command is simple:
- Create a new file in
/commands. - Refer to the expected structure/fields documented in
/commands/index.js. - It may help copy an existing command as a starting point.
- That's it!
- Keep the file name short and only use lowercase letters -- it's used as the identifer for the command and what people will type.
- Include all the relevant meta data:
name,summary,description,usage,author, ... - Use
process.env.VARIABLEto avoid any identifiable information in your file (e.g. URls or other sensitive data). - If you think other organisations could use your command (i.e. it's generic enough), please submit a pull request to the main repo:
https://github.com/demoive/rabbit2.
For code contributions, submit pull requests to https://github.com/demoive/rabbit2.