diff options
| author | 2018-02-26 02:43:06 +0000 | |
|---|---|---|
| committer | 2018-02-26 02:43:06 +0000 | |
| commit | aa0d0bb74abcb33c70ec98cab3e4a2251c77a18a (patch) | |
| tree | 4caebed5400f47f262731691d63f75148253d833 | |
| parent | Patched the grievous error we overlooked (#16) (diff) | |
Removed cooldown for devtest, fixed typo (#17)
| -rw-r--r-- | bot/cogs/bot.py | 4 | 
1 files 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" | 
