diff options
author | 2019-10-07 18:51:18 +0200 | |
---|---|---|
committer | 2019-10-07 18:51:18 +0200 | |
commit | 2899bac85c3c0529b354a762ba27a587a520d7cd (patch) | |
tree | 2d7383e1e0adba3df2dec9c9aa673576b110c27c | |
parent | Make sure that poor code does not contains token (diff) |
minor fix
-rw-r--r-- | bot/cogs/bot.py | 2 |
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: |