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 3d8f479347 - Show all commits

View file

@ -91,7 +91,7 @@ class Pterodactyl(commands.Cog):
self.task.cancel()
await self.client._session.close() # pylint: disable=protected-access
@commands.cog.listener()
@commands.Cog.listener()
async def on_message(self, message: discord.Message):
if message.channel.id == await self.config.console_channel():
self.websocket.send(json.dumps({"event": "send command", "args": [message.content]}))