Update bot_management.py
This commit is contained in:
parent
327a5e74d2
commit
871a5f73be
@ -19,6 +19,14 @@ class BotManager:
|
||||
except:
|
||||
pass
|
||||
|
||||
async def on_member_remove(self, member):
|
||||
# If the member is not a bot
|
||||
if member.bot is False:
|
||||
return
|
||||
else:
|
||||
# The member is a bot
|
||||
await self.bot.db_con.execute('DELETE FROM bots WHERE id = $1', member.id)
|
||||
|
||||
@commands.command()
|
||||
async def invite(self, ctx, bot=None, prefix=None):
|
||||
bot = await ctx.bot.get_user_info(bot)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user