From f588caf25f8e1a19d8982c4dff672533ead0bd5a Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 29 Feb 2024 20:40:03 -0500 Subject: [PATCH] fix(pterodactyl): fixed broken tellraw string --- pterodactyl/pterodactyl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pterodactyl/pterodactyl.py b/pterodactyl/pterodactyl.py index fa34133..4112bce 100644 --- a/pterodactyl/pterodactyl.py +++ b/pterodactyl/pterodactyl.py @@ -151,7 +151,8 @@ class Pterodactyl(commands.Cog): self.logger.debug("Chat channel not set. Skipping sending chat message to Discord") async def get_tellraw_string(self, username: str, message: str, color: discord.Color): - return await self.config.tellraw_json().replace(".$U", username).replace(".$M", message).replace(".$C", str(color)) + tellraw = await self.config.tellraw_json() + return tellraw.replace(".$U", username).replace(".$M", message).replace(".$C", str(color)) def get_task(self): return self.bot.loop.create_task(self.establish_websocket_connection(), name="Pterodactyl Websocket Connection")