From aa0d0bb74abcb33c70ec98cab3e4a2251c77a18a Mon Sep 17 00:00:00 2001 From: Jeremiah Boby Date: Mon, 26 Feb 2018 02:43:06 +0000 Subject: Removed cooldown for devtest, fixed typo (#17) --- bot/cogs/bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/cogs/bot.py b/bot/cogs/bot.py index a953f0f97..4c10faa0c 100644 --- a/bot/cogs/bot.py +++ b/bot/cogs/bot.py @@ -75,7 +75,7 @@ class Bot: async def on_message(self, msg: Message): if msg.channel.id in self.previous_format_times: - if time.time()-self.previous_format_times[msg.channel.id] > 300: + if time.time()-self.previous_format_times[msg.channel.id] > 300 or msg.channel.id == DEVTEST_CHANNEL: if msg.content.count("\n") >= 3: try: tree = ast.parse(msg.content) @@ -87,7 +87,7 @@ class Bot: # Multiple lines of single words could be interpreted as expressions. # This check is to avoid all nodes being parsed as expressions. # (e.g. words over multiple lines) - howto = ("Please use syntax highlighted blocks, as it makes" + howto = ("Please use syntax highlighted blocks, as it makes " "your code more legible for other users.\n" "\nTo do this, you should input your content like this:\n" "\n\`\`\`python\n" -- cgit v1.2.3