From 4f95955a0416388c1f14c126a8b00e963eb73e89 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 29 Feb 2024 17:19:26 -0500 Subject: [PATCH] fix(pterodactyl): fixed broken formatting --- pterodactyl/pterodactyl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pterodactyl/pterodactyl.py b/pterodactyl/pterodactyl.py index 1cd37fc..7e5f85a 100644 --- a/pterodactyl/pterodactyl.py +++ b/pterodactyl/pterodactyl.py @@ -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": [f"""tellraw @a ["",{"text":"{message.author.display_name} (DISCORD): ","color":"blue"},{"text":"{message.content}","color":"white"}]"""]})) + 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):