changed to Pattern
This commit is contained in:
parent
f7c0e61528
commit
8764898bcf
10
jonbot.js
10
jonbot.js
|
@ -28,14 +28,14 @@ function incrementKey(id, key, amount) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
controller.hears(["jonbot","^pattern$"],["direct_message","direct_mention","mention","ambient"],function(bot,message) {
|
controller.hears(["pattern","^pattern$"],["direct_message","direct_mention","mention","ambient"],function(bot,message) {
|
||||||
console.log(message.user + " mentioned \"jonbot\"");
|
console.log(message.user + " mentioned \"pattern\"");
|
||||||
|
|
||||||
// Increment the logged amount of mentions
|
// Increment the logged amount of mentions
|
||||||
incrementKey(message.user, "bot_mentions", 1);
|
incrementKey(message.user, "bot_mentions", 1);
|
||||||
|
|
||||||
// Reply properly
|
// Reply properly
|
||||||
bot.reply(message,':clap: JOOOOON! :clap:');
|
bot.reply(message,':clap: PAAATTERN! :clap:');
|
||||||
bot.api.reactions.add({
|
bot.api.reactions.add({
|
||||||
timestamp: message.ts,
|
timestamp: message.ts,
|
||||||
channel: message.channel,
|
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) {
|
controller.hears(["pattern","^pattern$"],["direct_message","direct_mention","mention","ambient"],function(bot,message) {
|
||||||
console.log(message.user + " mentioned \"jon\"");
|
console.log(message.user + " mentioned \"pattern\"");
|
||||||
|
|
||||||
// Increment the logged amount of mentions
|
// Increment the logged amount of mentions
|
||||||
incrementKey(message.user, "jon_mentions", 1);
|
incrementKey(message.user, "jon_mentions", 1);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user