From 8764898bcf34e4c9b4b136523429dbee3cb40f7a Mon Sep 17 00:00:00 2001 From: Villads Valur Korsholm Nielsen Date: Tue, 17 May 2016 11:20:13 +0000 Subject: [PATCH] changed to Pattern --- jonbot.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/jonbot.js b/jonbot.js index add0e4d..33e8a88 100644 --- a/jonbot.js +++ b/jonbot.js @@ -28,14 +28,14 @@ function incrementKey(id, key, amount) { }); } -controller.hears(["jonbot","^pattern$"],["direct_message","direct_mention","mention","ambient"],function(bot,message) { - console.log(message.user + " mentioned \"jonbot\""); +controller.hears(["pattern","^pattern$"],["direct_message","direct_mention","mention","ambient"],function(bot,message) { + console.log(message.user + " mentioned \"pattern\""); // Increment the logged amount of mentions incrementKey(message.user, "bot_mentions", 1); // Reply properly - bot.reply(message,':clap: JOOOOON! :clap:'); + bot.reply(message,':clap: PAAATTERN! :clap:'); bot.api.reactions.add({ timestamp: message.ts, channel: message.channel, @@ -47,8 +47,8 @@ controller.hears(["jonbot","^pattern$"],["direct_message","direct_mention","ment }); }); -controller.hears(["jon","^pattern$"],["direct_message","direct_mention","mention","ambient"],function(bot,message) { - console.log(message.user + " mentioned \"jon\""); +controller.hears(["pattern","^pattern$"],["direct_message","direct_mention","mention","ambient"],function(bot,message) { + console.log(message.user + " mentioned \"pattern\""); // Increment the logged amount of mentions incrementKey(message.user, "jon_mentions", 1);