Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions apollo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down