diff options
author | 2019-10-07 21:33:43 +0200 | |
---|---|---|
committer | 2019-10-07 21:33:43 +0200 | |
commit | b94e8487c22d7c25ab09bb3d44c44d62e5a2b613 (patch) | |
tree | 737a9f18e80a7baafdb4d5092fbef995ab4f7ad4 | |
parent | minor fix (diff) |
Another fix
After a new bunch of test I found bugs, and this fix resolves them
-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 729550c1a..b8de29f2a 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(msg): # if there is no token in the code + if parse_codeblock and not TokenRemover.is_token_in_message(TokenRemover, 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: |