tilføjede PAAATTERN! til hears, og noget mere UserData

This commit is contained in:
Villads Valur Korsholm Nielsen 2016-05-17 11:30:04 +00:00
parent 9875ed5be3
commit fd1486df8a

View File

@ -28,7 +28,7 @@ function incrementKey(id, key, amount) {
});
}
controller.hears(["pattern","^pattern$"],["direct_message","direct_mention","mention","ambient"],function(bot,message) {
controller.hears(["pattern","^pattern$",":clap: PAATTERN! :clap:"]["direct_message","direct_mention","mention","ambient"],function(bot,message) {
console.log(message.user + " mentioned \"pattern\"");
// Increment the logged amount of mentions
@ -47,11 +47,11 @@ controller.hears(["pattern","^pattern$"],["direct_message","direct_mention","men
});
});
controller.hears(["pattern","^pattern$"],["direct_message","direct_mention","mention","ambient"],function(bot,message) {
controller.hears(["pattern","^pattern$",":clap: PAATTERN! :clap:"],["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);
incrementKey(message.user, "pattern_mentions", 1);
// React with appropriate emoji
bot.api.reactions.add({