From 096198516874ec61c6032a7e092cd290d6d0c4dd Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Wed, 28 Feb 2024 12:44:12 -0500 Subject: [PATCH] feat(pterodactyl): added configuration command for setting the console channel --- pterodactyl/pterodactyl.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pterodactyl/pterodactyl.py b/pterodactyl/pterodactyl.py index c9c5a73..61e3bf0 100644 --- a/pterodactyl/pterodactyl.py +++ b/pterodactyl/pterodactyl.py @@ -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}")