feat(pterodactyl): added the topic config values to -ptero set view

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

View file

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