fix(pterodactyl): fixed broken tellraw string
Some checks failed
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 18s
Actions / Build Documentation (MkDocs) (pull_request) Successful in 22s

This commit is contained in:
Seaswimmer 2024-02-29 20:40:03 -05:00
parent 4108bb22bb
commit f588caf25f
Signed by: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -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")