Creating your first command
The basics
Add a reference to the command into index.js:
// ...
// COMMANDS:
new engine.command('!help')
// ...
Then inside another folder called "commands", create a file with the same name as your command (including prefix)
function command(msg) {
// what to happen when the command is called
msg.reply('help message')
}
module.exports = command
Last updated