From 10b31c81b37c890d0e124610cb2d9e03891f4f8e Mon Sep 17 00:00:00 2001 From: cswimr Date: Fri, 21 Feb 2025 11:58:07 -0600 Subject: [PATCH] fix(pterodactyl): use the correct language for some codeblocks --- pterodactyl/pterodactyl.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pterodactyl/pterodactyl.py b/pterodactyl/pterodactyl.py index cab4414..9690bf8 100644 --- a/pterodactyl/pterodactyl.py +++ b/pterodactyl/pterodactyl.py @@ -23,7 +23,7 @@ class Pterodactyl(commands.Cog): __author__ = ["[cswimr](https://www.coastalcommits.com/cswimr)"] __git__ = "https://www.coastalcommits.com/cswimr/SeaCogs" - __version__ = "2.0.7" + __version__ = "2.0.8" __documentation__ = "https://seacogs.coastalcommits.com/pterodactyl/" def __init__(self, bot: Red): @@ -416,7 +416,7 @@ class Pterodactyl(commands.Cog): - `.$V` (version) - `.$D` (description / Message of the Day)""" await config.topic.set(text) - await ctx.send(f"Topic set to:\n{box(text, 'yaml')}") + await ctx.send(f"Topic set to:\n{box(text, 'markdown')}") @pterodactyl_config.group(name="chat") async def pterodactyl_config_chat(self, ctx: commands.Context): @@ -607,19 +607,19 @@ class Pterodactyl(commands.Cog): **Topic Hostname:** `{topic_hostname}` **Topic Port:** `{topic_port}` - **Topic Text:** {box(topic_text, "yaml")} + **Topic Text:** {box(topic_text, "markdown")} **Chat Command:** {box(chat_command, "json")} - **Chat Regex:** {box(chat_regex, "re")} - **Server Regex:** {box(server_regex, "re")} - **Join Regex:** {box(join_regex, "re")} - **Leave Regex:** {box(leave_regex, "re")} - **Achievement Regex:** {box(achievement_regex, "re")}""" + **Chat Regex:** {box(chat_regex, "regex")} + **Server Regex:** {box(server_regex, "regex")} + **Join Regex:** {box(join_regex, "regex")} + **Leave Regex:** {box(leave_regex, "regex")} + **Achievement Regex:** {box(achievement_regex, "regex")}""" await ctx.send(embed=embed) if not len(regex_blacklist) == 0: regex_blacklist_embed = discord.Embed(color=await ctx.embed_color(), title="Regex Blacklist") for name, regex in regex_blacklist.items(): - regex_blacklist_embed.add_field(name=name, value=box(regex, "re"), inline=False) + regex_blacklist_embed.add_field(name=name, value=box(regex, "regex"), inline=False) await ctx.send(embed=regex_blacklist_embed) def get_bool_str(self, inp: bool) -> str: