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}")