tilføjede PAAATTERN! til hears, og noget mere UserData
This commit is contained in:
parent
9875ed5be3
commit
fd1486df8a
|
@ -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\"");
|
console.log(message.user + " mentioned \"pattern\"");
|
||||||
|
|
||||||
// Increment the logged amount of mentions
|
// 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\"");
|
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, "pattern_mentions", 1);
|
||||||
|
|
||||||
// React with appropriate emoji
|
// React with appropriate emoji
|
||||||
bot.api.reactions.add({
|
bot.api.reactions.add({
|
||||||
|
|
Loading…
Reference in New Issue
Block a user