feat(pterodactyl): added the topic config values to -ptero set view
All checks were successful
Actions / Build Documentation (MkDocs) (push) Successful in 24s
Actions / Lint Code (Ruff & Pylint) (push) Successful in 28s

This commit is contained in:
Seaswimmer 2024-03-14 16:48:08 -04:00
parent cbd9f28f38
commit 7c16ec8df8
Signed by: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -523,6 +523,9 @@ class Pterodactyl(commands.Cog):
api_endpoint = await config.api_endpoint()
invite = await config.invite()
regex_blacklist: dict = await config.regex_blacklist()
topic_text = await config.topic()
topic_hostname = await config.topic_hostname()
topic_port = await config.topic_port()
embed = discord.Embed(color = await ctx.embed_color(), title="Pterodactyl Configuration")
embed.description = f"""**Base URL:** {base_url}
**Server ID:** `{server_id}`
@ -536,6 +539,10 @@ class Pterodactyl(commands.Cog):
**API Endpoint:** `{api_endpoint}`
**Invite:** {invite}
**Topic Text:** {box(topic_text, 'yaml')}
**Topic Hostname:** {topic_hostname}
**Topic Port:** {topic_port}
**Chat Command:** {box(chat_command, 'json')}
**Chat Regex:** {box(chat_regex, 're')}
**Server Regex:** {box(server_regex, 're')}