fix(pterodactyl): fix some incorrect function names
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 15:16:06 -06:00
parent 10b31c81b3
commit 15b7ef61b1
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.8"
__version__ = "2.0.9"
__documentation__ = "https://seacogs.coastalcommits.com/pterodactyl/"
def __init__(self, bot: Red):
@ -234,7 +234,7 @@ class Pterodactyl(commands.Cog):
if view.result is True:
await message.edit(content=f"Sending websocket command to {action} server...", view=None)
await self._websocket_send(json.dumps({"event": "set state", "args": [action]}))
await self._send(json.dumps({"event": "set state", "args": [action]}))
await message.edit(content=f"Server {action_ing}", view=None)
return
@ -248,7 +248,7 @@ class Pterodactyl(commands.Cog):
ctx = await self.bot.get_context(ctx)
if channel:
await channel.send(f"Received console command from {ctx.author.id}: {command[:1900]}", allowed_mentions=discord.AllowedMentions.none())
await self._websocket_send(json.dumps({"event": "send command", "args": [command]}))
await self._send(json.dumps({"event": "send command", "args": [command]}))
await ctx.send(f"Command sent to server. {box(command, 'json')}")
@commands.Cog.listener()