From dc18a6097c4cf19a22c1dc20bb18a29b89773db5 Mon Sep 17 00:00:00 2001 From: Mango0x45 Date: Thu, 25 Jun 2020 09:38:10 +0200 Subject: increased efficiency by using an or statement --- bot.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'bot.py') 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) -- cgit v1.2.3