Skip to content

Instantly share code, notes, and snippets.

@tanjo
Created May 11, 2018 05:28
Show Gist options
  • Save tanjo/b2e1ff5a48f6accd80c2711caa622199 to your computer and use it in GitHub Desktop.
Save tanjo/b2e1ff5a48f6accd80c2711caa622199 to your computer and use it in GitHub Desktop.
Botkit で使えるお茶リアクション
module.exports = function(controller) {
controller.hears(['茶', 'tea', 'おちゃ', 'りょくちゃ', '🍵', '旦', 'Tea'], ['ambient'], function(bot, message) {
bot.api.reactions.add({
timestamp: message.ts,
channel: message.channel,
name: 'tea'
});
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment