From c90bb9b0a79107d692cbafc56258759cc3ac4d62 Mon Sep 17 00:00:00 2001 From: Luka Warren Date: Wed, 2 Apr 2025 20:40:08 +0100 Subject: [PATCH] Added kill command as per issue #82 --- apollo.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apollo.py b/apollo.py index 93b5af9..0b54f33 100644 --- a/apollo.py +++ b/apollo.py @@ -118,6 +118,12 @@ async def sync(ctx: Context[Bot]) -> None: synced = await ctx.bot.tree.sync() await ctx.reply(f"Synced {len(synced)} commands globally to the current guild.") +@bot.command() +@commands.guild_only() +@check(is_compsoc_exec_in_guild) +async def kill(ctx: Context[Bot]) -> None: + await ctx.reply("Shutting down Apollo!", ephemeral=True) + await ctx.bot.close() @bot.event async def on_command_error(ctx: Context[Bot], error: Exception):