feat(pterodactyl): added support for bridging messages sent by the server
This commit is contained in:
parent
457f1da7f4
commit
0d21a52ce3
3 changed files with 29 additions and 0 deletions
|
@ -153,3 +153,15 @@ class Pterodactyl(commands.Cog):
|
|||
return await ctx.send(f"Chat command is currently set to:\n{box(command, 'json')}")
|
||||
await config.chat_command.set(command)
|
||||
await ctx.send(f"Chat command set to:\n{box(command, 'json')}")
|
||||
|
||||
@pterodactyl_config_chat.command(name = "server")
|
||||
async def pterodactyl_config_chat_server(self, ctx: commands.Context, *, regex: str = None) -> None:
|
||||
"""Set the regex pattern to match server messages on the server.
|
||||
|
||||
See [documentation]() for more information."""
|
||||
#TODO - fix this link
|
||||
if regex is None:
|
||||
regex = await config.server_regex()
|
||||
return await ctx.send(f"Server regex is currently set to:\n{box(regex, 'regex')}")
|
||||
await config.server_regex.set(regex)
|
||||
await ctx.send(f"Server regex set to:\n{box(regex, 'regex')}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue