fix(pterodactyl): fixing tellraw command
Some checks failed
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 18s
Actions / Build Documentation (MkDocs) (pull_request) Successful in 21s

This commit is contained in:
Seaswimmer 2024-02-29 17:24:08 -05:00
parent 5dc55b52e7
commit 0e638ca9e3
Signed by: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -162,7 +162,7 @@ class Pterodactyl(commands.Cog):
await message.channel.send(f"Received message from {message.author.id}: {message.content}")
await self.websocket.send(json.dumps({"event": "send command", "args": [message.content]}))
if message.channel.id == await self.config.chat_channel() and message.author.id != self.bot.user.id:
await self.websocket.send(json.dumps({"event": "send command", "args": ["tellraw @a [\"\",{\"text\":\"%s (DISCORD): \",\"color\":\"blue\"},{\"text\":\"%s\",\"color\":\"white\"}]", message.author.name, message.content]}))
await self.websocket.send(json.dumps({"event": "send command", "args": ['tellraw @a ["",{"text":"%s (DISCORD): ","color":"blue"},{"text":"%s","color":"white"}]', message.author.name, message.content]}))
@commands.group(autohelp = True, name = "pterodactyl", aliases = ["ptero"])
async def pterodactyl(self, ctx: commands.Context):