aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Daniel Brown <[email protected]>2018-09-06 17:36:38 -0500
committerGravatar Daniel Brown <[email protected]>2018-09-06 17:36:38 -0500
commit139e74a49c43993530ee5f0391ef3e6228bc6c40 (patch)
treefa2cb283b5882904f9e2e5c7ce05cbcf1e1b5cf8
parentAdded Python format embed removal, either by the user correcting their format... (diff)
Added Python format embed removal, either by the user correcting their formatting or by clicking the reaction, which can be done by the user who caused it or by staff.
Also corrected linting errors.
-rw-r--r--bot/cogs/bot.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/bot/cogs/bot.py b/bot/cogs/bot.py
index 001e2e2fe..1b5662ab1 100644
--- a/bot/cogs/bot.py
+++ b/bot/cogs/bot.py
@@ -247,12 +247,12 @@ class Bot:
"""
parse_codeblock = (
- (
- msg.channel.id in self.channel_cooldowns
- or msg.channel.id in self.channel_whitelist
- )
- and not msg.author.bot
- and len(msg.content.splitlines()) > 3
+ (
+ msg.channel.id in self.channel_cooldowns
+ or msg.channel.id in self.channel_whitelist
+ )
+ and not msg.author.bot
+ and len(msg.content.splitlines()) > 3
)
if parse_codeblock: