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 8954df4c1d - Show all commits

View file

@ -87,7 +87,10 @@ class Pterodactyl(commands.Cog):
@pterodactyl_config.command(name = "url") @pterodactyl_config.command(name = "url")
async def pterodactyl_config_base_url(self, ctx: commands.Context, *, base_url: str = None) -> None: async def pterodactyl_config_base_url(self, ctx: commands.Context, *, base_url: str = None) -> None:
"""Set the base URL of your Pterodactyl Panel. Please include the protocol (http/https).""" """Set the base URL of your Pterodactyl Panel.
Please include the protocol (http/https).
Example: `https://panel.example.com`"""
if base_url is None: if base_url is None:
base_url = await config.base_url() base_url = await config.base_url()
return await ctx.send(f"Base URL is currently set to {base_url}") return await ctx.send(f"Base URL is currently set to {base_url}")