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.