fix(pterodactyl): cog ->Cog
This commit is contained in:
parent
0961985168
commit
3d8f479347
1 changed files with 1 additions and 1 deletions
|
@ -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]}))
|
||||||
|
|
Loading…
Reference in a new issue