diff options
author | 2018-03-08 07:58:59 +0100 | |
---|---|---|
committer | 2018-03-08 07:58:59 +0100 | |
commit | 21483cf8ad923b5bb38adf4e8d7a46ea7ef722c8 (patch) | |
tree | 8ec31cfad4113cdb53927aea261d0aead0a19e3a | |
parent | Improving autocodeblocks (#23) (diff) |
Commenting out the codeblocks detection code, it appears to be interfering with self.accept()
-rw-r--r-- | bot/cogs/bot.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bot/cogs/bot.py b/bot/cogs/bot.py index a29aff9d5..0ead73721 100644 --- a/bot/cogs/bot.py +++ b/bot/cogs/bot.py @@ -1,9 +1,9 @@ # coding=utf-8 -import ast +# import ast import re -import time +# import time -from discord import Embed, Message +from discord import Embed # Message from discord.ext.commands import AutoShardedBot, Context, command, group from dulwich.repo import Repo @@ -104,6 +104,7 @@ class Bot: content = content.strip() return content + """ async def on_message(self, msg: Message): if msg.channel.id in self.channel_cooldowns: on_cooldown = time.time() - self.channel_cooldowns[msg.channel.id] < 300 @@ -135,6 +136,7 @@ class Bot: except SyntaxError: # todo: add logging pass + """ def setup(bot): |