mirror of
https://github.com/polyjitter/searchbot-discord.git
synced 2024-08-14 22:46:55 +00:00
please just end me
This commit is contained in:
parent
26b3cfbd83
commit
01d657a214
1 changed files with 5 additions and 1 deletions
6
main.py
6
main.py
|
@ -142,9 +142,13 @@ class Bot(commands.Bot):
|
||||||
mentions = [self.user.mention, f'<@!{self.user.id}>']
|
mentions = [self.user.mention, f'<@!{self.user.id}>']
|
||||||
ctx = await self.get_context(message)
|
ctx = await self.get_context(message)
|
||||||
|
|
||||||
|
# Avoid warnings while loading
|
||||||
|
if not hasattr(bot, 'appinfo'):
|
||||||
|
return
|
||||||
|
|
||||||
# Handling
|
# Handling
|
||||||
# Turn away bots
|
# Turn away bots
|
||||||
if message.author.bot:
|
elif message.author.bot:
|
||||||
return
|
return
|
||||||
|
|
||||||
# Ignore blocked users
|
# Ignore blocked users
|
||||||
|
|
Loading…
Reference in a new issue