forked from cswimr/SeaCogs
fix(pterodactyl): moved chatchannel into the chat command group
This commit is contained in:
parent
76aa99c3f9
commit
4108bb22bb
1 changed files with 5 additions and 5 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue