will not increase message counters when in test channel
This commit is contained in:
parent
af06631493
commit
57fc340535
|
@ -47,9 +47,13 @@ controller.hears(["np"],["direct_message","direct_mention","mention","ambient"],
|
|||
console.log(message.user + " mentioned \"np\"");
|
||||
|
||||
// Increment the logged amount of mentions
|
||||
incrementKey(message.user, "bot_calls", 1, "users");
|
||||
if (message.channel != "C0NEYDD16") {
|
||||
incrementKey(message.channel, "bot_calls", 1, "channels");
|
||||
incrementKey(message.team, "bot_calls", 1, "teams");
|
||||
incrementKey(message.user, "bot_calls", 1, "users");
|
||||
} else {
|
||||
console.log("Message was from test channel #botsons! Mention counters will not be increased.");
|
||||
}
|
||||
|
||||
// Decide what to do
|
||||
if (Math.random() < 0.9) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user