- create a
.js
file in thecommands/
directory using the below code as a reference
'use strict';
module.exports = function example(controller) {
controller.hears('example', ['direct_mention'], function(bot, message) {
bot.reply(message, 'You just executed the example command!');
});
}
check out botkit for more information!