From d2fa39a6b77bb6984e65181774da5199bd8521fd Mon Sep 17 00:00:00 2001 From: SimolZimol <70102430+SimolZimol@users.noreply.github.com> Date: Sun, 26 Oct 2025 00:23:34 +0200 Subject: [PATCH] modified: app.py --- app.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index c3a7fe3..bbbe66b 100644 --- a/app.py +++ b/app.py @@ -32,6 +32,13 @@ async def on_ready(): activity=discord.Game(name="Hearts of Iron IV"), status=discord.Status.online ) + + # Sync hybrid commands on startup + try: + synced = await bot.tree.sync() + print(f'Synced {len(synced)} hybrid commands') + except Exception as e: + print(f'Failed to sync commands: {e}') @bot.event async def on_guild_join(guild): @@ -53,7 +60,7 @@ def is_owner(): return commands.check(predicate) # Owner Commands -@bot.command(name='reload') +@bot.hybrid_command(name='reload', description='Reloads the bot and syncs slash commands (Owner only)') @is_owner() async def reload_bot(ctx): """Reloads the bot and syncs slash commands (Owner only)"""