feat(pterodactyl): added configuration command for setting the console channel
This commit is contained in:
parent
cebc2223d9
commit
0961985168
1 changed files with 6 additions and 0 deletions
|
@ -130,3 +130,9 @@ class Pterodactyl(commands.Cog):
|
|||
self.logger.debug("Configuration value set: server_id = %s\nRestarting task...", server_id)
|
||||
self.task.cancel()
|
||||
self.task = self.get_task()
|
||||
|
||||
@pterodactyl_config.command(name = "consolechannel")
|
||||
async def pterodactyl_config_console_channel(self, ctx: commands.Context, channel: discord.TextChannel):
|
||||
"""Set the channel to send console output to."""
|
||||
await self.config.console_channel.set(channel.id)
|
||||
await ctx.send(f"Console channel set to {channel.mention}")
|
||||
|
|
Loading…
Reference in a new issue