fix(pterodactyl): cog ->Cog

This commit is contained in:
Seaswimmer 2024-02-28 12:44:54 -05:00
parent 0961985168
commit 3d8f479347
Signed by untrusted user: cswimr
GPG key ID: B8953EC01E5C4063

View file

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