claps more now
This commit is contained in:
parent
0740abfc3d
commit
feadb9ddd0
11
jonbot.js
11
jonbot.js
|
@ -8,8 +8,17 @@ bot.startRTM(function(err,bot,payload) {
|
||||||
throw new Error('Could not connect to Slack');
|
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.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) {
|
controller.hears(["jon","^pattern$"],["direct_message","direct_mention","mention","ambient"],function(bot,message) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user