Add Pterodactyl cog #19
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ class Pterodactyl(commands.Cog):
|
|||
|
||||
@commands.Cog.listener()
|
||||
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() and message.author.id != self.bot.user.id:
|
||||
await self.websocket.send(json.dumps({"event": "send command", "args": [message.content]}))
|
||||
|
||||
@commands.group(autohelp = True, name = "pterodactyl", aliases = ["ptero"])
|
||||
|
|
Loading…
Reference in a new issue