fix(pterodactyl): fixed some chat formatting
All checks were successful
Actions / Build Documentation (MkDocs) (push) Successful in 24s
Actions / Lint Code (Ruff & Pylint) (push) Successful in 29s

This commit is contained in:
Seaswimmer 2024-03-14 16:49:49 -04:00
parent 6ab593390c
commit 9b0a11a7bc
Signed by: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -333,13 +333,13 @@ class Pterodactyl(commands.Cog):
async def pterodactyl_config_topic_host(self, ctx: commands.Context, host: str) -> None: async def pterodactyl_config_topic_host(self, ctx: commands.Context, host: str) -> None:
"""Set the hostname or IP address of your server.""" """Set the hostname or IP address of your server."""
await config.topic_hostname.set(host) await config.topic_hostname.set(host)
await ctx.send(f"Hostname/IP set to {host}") await ctx.send(f"Hostname/IP set to `{host}`")
@pterodactyl_config_topic.command(name = "port") @pterodactyl_config_topic.command(name = "port")
async def pterodactyl_config_topic_port(self, ctx: commands.Context, port: int) -> None: async def pterodactyl_config_topic_port(self, ctx: commands.Context, port: int) -> None:
"""Set the port of your server.""" """Set the port of your server."""
await config.topic_port.set(port) await config.topic_port.set(port)
await ctx.send(f"Port set to {port}") await ctx.send(f"Port set to `{port}`")
@pterodactyl_config_topic.command(name = "text") @pterodactyl_config_topic.command(name = "text")
async def pterodactyl_config_topic_text(self, ctx: commands.Context, *, text: str) -> None: async def pterodactyl_config_topic_text(self, ctx: commands.Context, *, text: str) -> None:
@ -539,8 +539,8 @@ class Pterodactyl(commands.Cog):
**API Endpoint:** `{api_endpoint}` **API Endpoint:** `{api_endpoint}`
**Invite:** {invite} **Invite:** {invite}
**Topic Hostname:** {topic_hostname} **Topic Hostname:** `{topic_hostname}`
**Topic Port:** {topic_port} **Topic Port:** `{topic_port}`
**Topic Text:** {box(topic_text, 'yaml')} **Topic Text:** {box(topic_text, 'yaml')}
**Chat Command:** {box(chat_command, 'json')} **Chat Command:** {box(chat_command, 'json')}