From 01d657a214a2cc53da840a232a6afb973ce94f21 Mon Sep 17 00:00:00 2001 From: Adriene Hutchins Date: Mon, 2 Mar 2020 23:49:21 -0500 Subject: [PATCH] please just end me --- main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 8b075ef..ca70b90 100644 --- a/main.py +++ b/main.py @@ -142,9 +142,13 @@ class Bot(commands.Bot): mentions = [self.user.mention, f'<@!{self.user.id}>'] ctx = await self.get_context(message) + # Avoid warnings while loading + if not hasattr(bot, 'appinfo'): + return + # Handling # Turn away bots - if message.author.bot: + elif message.author.bot: return # Ignore blocked users