aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar kraktus <[email protected]>2019-10-07 18:51:18 +0200
committerGravatar GitHub <[email protected]>2019-10-07 18:51:18 +0200
commit2899bac85c3c0529b354a762ba27a587a520d7cd (patch)
tree2d7383e1e0adba3df2dec9c9aa673576b110c27c
parentMake sure that poor code does not contains token (diff)
minor fix
-rw-r--r--bot/cogs/bot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/bot.py b/bot/cogs/bot.py
index e8ac0a234..729550c1a 100644
--- a/bot/cogs/bot.py
+++ b/bot/cogs/bot.py
@@ -238,7 +238,7 @@ class Bot(Cog):
and len(msg.content.splitlines()) > 3
)
- if parse_codeblock and not TokenRemover.is_token_in_message: # if there is no token in the code
+ if parse_codeblock and not TokenRemover.is_token_in_message(msg): # if there is no token in the code
on_cooldown = (time.time() - self.channel_cooldowns.get(msg.channel.id, 0)) < 300
if not on_cooldown or DEBUG_MODE:
try: