admin command for forcing mod update
All checks were successful
Build and Push Docker Image / build (push) Successful in 11s
All checks were successful
Build and Push Docker Image / build (push) Successful in 11s
This commit is contained in:
parent
c947aa2148
commit
226c05526d
@ -51,6 +51,19 @@ class CommandCog(commands.Cog):
|
|||||||
async def on_ready(self):
|
async def on_ready(self):
|
||||||
log.info("%s cog is ready", self.__class__.__name__)
|
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(
|
rcon_group = app_commands.Group(
|
||||||
name="rcon",
|
name="rcon",
|
||||||
description="Remote console commands",
|
description="Remote console commands",
|
||||||
|
Reference in New Issue
Block a user