diff --git a/cogs/commands.py b/cogs/commands.py index a184b68..4f5fc98 100644 --- a/cogs/commands.py +++ b/cogs/commands.py @@ -51,6 +51,19 @@ class CommandCog(commands.Cog): async def on_ready(self): log.info("%s cog is ready", self.__class__.__name__) + admin_group = app_commands.Group( + name="admin", + description="Admin-only commands", + default_permissions=Permissions.all(), + guild_only=True + ) + + @admin_group.command(name="force-mod-restart-event") + async def admin_force_mod_restart_event(self, inter: Interaction): + await inter.response.send_message(content="Acknowledged", ephemeral=True) + cog = self.bot.get_cog("ConsoleCog") + await cog.handle_mod_needs_update("") + rcon_group = app_commands.Group( name="rcon", description="Remote console commands",