Add Pterodactyl cog #19

Merged
cswimr merged 139 commits from pterodactyl into main 2024-03-02 00:07:42 -05:00
Showing only changes of commit d1966fb05f - Show all commits

View file

@ -346,20 +346,20 @@ class Pterodactyl(commands.Cog):
embed = discord.Embed(color = await ctx.embed_color(), title="Pterodactyl Configuration")
embed.description = f"""**Base URL:** {base_url}
**Server ID:** `{server_id}`
**Console Channel:** {console_channel}
**Chat Channel:** {chat_channel}
**Chat Command:** {box(chat_command, 'json')}
**Chat Regex:** `{chat_regex}`
**Server Regex:** `{server_regex}`
**Join Regex:** `{join_regex}`
**Leave Regex:** `{leave_regex}`
**Console Channel:** <#{console_channel}>
**Chat Channel:** <#{chat_channel}>
**Achievement Regex:** `{achievement_regex}`
**Startup Message:** {startup_msg}
**Shutdown Message:** {shutdown_msg}
**Join Message:** {join_msg}
**Leave Message:** {leave_msg}
**Mask IP:** {self.get_bool_str(mask_ip)}
**API Endpoint:** `{api_endpoint}`"""
**API Endpoint:** `{api_endpoint}`
**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')}"""
await ctx.send(embed=embed)
def get_bool_str(self, bool: bool) -> str: