Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,31 @@ const forTaco = controller => {
} tacos remaning.. And you tried to give *${tacosGiven}*`
);
}
} else if (userIndex === senderIndex) {
bot.api.reactions.add(
{
timestamp: message.ts,
channel: message.channel,
name: "x"
},
function(err, res) {
if (err) {
bot.botkit.log("Failed to add emoji reaction :(", err);
}
}
);
bot.api.reactions.add(
{
timestamp: message.ts,
channel: message.channel,
name: "wink"
},
function(err, res) {
if (err) {
bot.botkit.log("Failed to add emoji reaction :(", err);
}
}
);
}
}
});
Expand Down