fix(pterodactyl): use the correct language for some codeblocks
Some checks are pending
Actions / Lint Code (Ruff & Pylint) (push) Waiting to run
Actions / Build Documentation (MkDocs) (push) Waiting to run

This commit is contained in:
cswimr 2025-02-21 11:58:07 -06:00
parent 3fdb0836cf
commit 10b31c81b3
Signed by: cswimr
GPG key ID: 0EC431A8DA8F8087

View file

@ -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: