claps
This commit is contained in:
parent
20ddf9fe43
commit
0740abfc3d
12
jonbot.js
12
jonbot.js
|
@ -11,3 +11,15 @@ bot.startRTM(function(err,bot,payload) {
|
|||
controller.hears(["jonbot?","^pattern$"],["direct_message","direct_mention","mention","ambient"],function(bot,message) {
|
||||
bot.reply(message,':clap: JOOOOON! :clap:');
|
||||
});
|
||||
|
||||
controller.hears(["jon","^pattern$"],["direct_message","direct_mention","mention","ambient"],function(bot,message) {
|
||||
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');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user