From 4108bb22bb48a095426d156e3931f03629c1c78a Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 29 Feb 2024 20:31:29 -0500 Subject: [PATCH] fix(pterodactyl): moved chatchannel into the chat command group --- pterodactyl/pterodactyl.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pterodactyl/pterodactyl.py b/pterodactyl/pterodactyl.py index 675984f..fa34133 100644 --- a/pterodactyl/pterodactyl.py +++ b/pterodactyl/pterodactyl.py @@ -222,16 +222,16 @@ class Pterodactyl(commands.Cog): await self.config.console_channel.set(channel.id) await ctx.send(f"Console channel set to {channel.mention}") - @pterodactyl_config.command(name = "chatchannel") + @pterodactyl_config.group(name = "chat") + async def pterodactyl_config_chat(self, ctx: commands.Context): + """Configure chat settings.""" + + @pterodactyl_config_chat.command(name = "channel") async def pterodactyl_config_chat_channel(self, ctx: commands.Context, channel: discord.TextChannel) -> None: """Set the channel to send chat output to.""" await self.config.chat_channel.set(channel.id) await ctx.send(f"Chat channel set to {channel.mention}") - @pterodactyl_config.group(name = "chat") - async def pterodactyl_config_chat(self, ctx: commands.Context): - """Configure chat settings.""" - @pterodactyl_config_chat.command(name = "regex") async def pterodactyl_config_chat_regex(self, ctx: commands.Context, *, regex: str = None) -> None: """Set the regex pattern to match chat messages.