Merge branch 'patch-1' into 'master'

Fixed.



See merge request !1
This commit is contained in:
Christoffer Müller Madsen 2016-05-17 11:17:40 +00:00
commit c1239d3d65

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