claps more now

This commit is contained in:
Christoffer Müller Madsen 2016-02-22 15:54:22 +01:00
parent 0740abfc3d
commit feadb9ddd0

View File

@ -8,8 +8,17 @@ bot.startRTM(function(err,bot,payload) {
throw new Error('Could not connect to Slack');
}
});
controller.hears(["jonbot?","^pattern$"],["direct_message","direct_mention","mention","ambient"],function(bot,message) {
controller.hears(["jonbot","^pattern$"],["direct_message","direct_mention","mention","ambient"],function(bot,message) {
bot.reply(message,':clap: JOOOOON! :clap:');
bot.api.reactions.add({
timestamp: message.ts,
channel: message.channel,
name: "clap",
},function(err, res) {
if (err) {
bot.botkit.log('Failed to add reaction emoji');
}
});
});
controller.hears(["jon","^pattern$"],["direct_message","direct_mention","mention","ambient"],function(bot,message) {