aboutsummaryrefslogtreecommitdiff
path: root/bot.py
diff options
context:
space:
mode:
authorMango0x45 <dogelikestopkekmemes@gmail.com>2020-06-25 07:38:10 +0000
committerMango0x45 <dogelikestopkekmemes@gmail.com>2020-06-25 07:38:10 +0000
commitdc18a6097c4cf19a22c1dc20bb18a29b89773db5 (patch)
tree595e0f5817904601398c5cb245d0cddbcaa62276 /bot.py
parent3c7c0f5aaaebcc207611de3b638bdbfe189decb3 (diff)
downloadsteve-bot-dc18a6097c4cf19a22c1dc20bb18a29b89773db5.tar
steve-bot-dc18a6097c4cf19a22c1dc20bb18a29b89773db5.tar.gz
steve-bot-dc18a6097c4cf19a22c1dc20bb18a29b89773db5.tar.bz2
steve-bot-dc18a6097c4cf19a22c1dc20bb18a29b89773db5.tar.lz
steve-bot-dc18a6097c4cf19a22c1dc20bb18a29b89773db5.tar.xz
steve-bot-dc18a6097c4cf19a22c1dc20bb18a29b89773db5.tar.zst
steve-bot-dc18a6097c4cf19a22c1dc20bb18a29b89773db5.zip
increased efficiency by using an or statement
Diffstat (limited to 'bot.py')
-rwxr-xr-xbot.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/bot.py b/bot.py
index 533b99d..d67dc3c 100755
--- a/bot.py
+++ b/bot.py
@@ -63,9 +63,7 @@ class BedrockBot(commands.Bot):
async def on_message(self, message):
- if message.author.bot:
- return
- if message.author.id in self.blacklist:
+ if message.author.bot or message.author.id in self.blacklist:
return
await self.process_commands(message)