From 0909e9c19550bf65118f30b5bb5e74e6fc3ee6da Mon Sep 17 00:00:00 2001 From: Luke Robles Date: Mon, 23 Aug 2021 17:47:38 -0700 Subject: [PATCH] adding shoo command for me so i can make the bot leave a server --- app/bot.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/bot.py b/app/bot.py index 7f15aa64..09885e0a 100755 --- a/app/bot.py +++ b/app/bot.py @@ -46,6 +46,13 @@ async def on_ready(): await bot.change_presence(status=discord.Status.online, activity=discord.Activity(type=discord.ActivityType.listening, name="type !help")) await bot.get_channel(152921472304676865).send("I have reconnected") + +@bot.command(name='shoo') +async def shoo(ctx): + if ctx.message.author.id != 144986109804412928: + return + await ctx.message.guild.leave() + @bot.command(name='ask') async def ask(ctx): import questions