admin command for forcing mod update
All checks were successful
Build and Push Docker Image / build (push) Successful in 11s

This commit is contained in:
Corban-Lee Jones 2024-12-06 14:14:52 +00:00
parent c947aa2148
commit 226c05526d

View File

@ -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",