fix(pterodactyl): do not ratelimit yourself
Some checks failed
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 19s
Actions / Build Documentation (MkDocs) (pull_request) Successful in 20s

This commit is contained in:
Seaswimmer 2024-02-28 13:08:24 -05:00
parent d297a2181d
commit a8f60b1aec
Signed by: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -96,7 +96,7 @@ class Pterodactyl(commands.Cog):
@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() and message.author.id != self.bot.user.id:
await self.websocket.send(json.dumps({"event": "send command", "args": [message.content]})) await self.websocket.send(json.dumps({"event": "send command", "args": [message.content]}))
@commands.group(autohelp = True, name = "pterodactyl", aliases = ["ptero"]) @commands.group(autohelp = True, name = "pterodactyl", aliases = ["ptero"])