This commit is contained in:
Jon Michael Aanes 2016-05-17 11:15:02 +00:00
parent f7c0e61528
commit 9ad133d829

View File

@ -28,7 +28,7 @@ function incrementKey(id, key, amount) {
});
}
controller.hears(["jonbot","^pattern$"],["direct_message","direct_mention","mention","ambient"],function(bot,message) {
controller.hears(["jonbot"],["direct_message","direct_mention","mention","ambient"],function(bot,message) {
console.log(message.user + " mentioned \"jonbot\"");
// Increment the logged amount of mentions
@ -47,7 +47,9 @@ controller.hears(["jonbot","^pattern$"],["direct_message","direct_mention","ment
});
});
controller.hears(["jon","^pattern$"],["direct_message","direct_mention","mention","ambient"],function(bot,message) {
// Lol, Christoffer er en noob.
controller.hears(["jon"],["direct_message","direct_mention","mention","ambient"],function(bot,message) {
console.log(message.user + " mentioned \"jon\"");
// Increment the logged amount of mentions