feat(pterodactyl): testing allowing custom colors in tellraw
Some checks failed
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 22s
Actions / Build Documentation (MkDocs) (pull_request) Successful in 27s

This commit is contained in:
Seaswimmer 2024-02-29 18:53:47 -05:00
parent 4174bc4be7
commit d3cc445802
Signed by: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -147,7 +147,7 @@ class Pterodactyl(commands.Cog):
self.logger.debug("Chat channel not set. Skipping sending chat message to Discord") self.logger.debug("Chat channel not set. Skipping sending chat message to Discord")
def get_tellraw_string(self, username: str, message: str): def get_tellraw_string(self, username: str, message: str):
return f'tellraw @a ["",{{"text":"{username} (DISCORD): ","color":"blue"}},{{"text":"{message}","color":"white"}}]' return f'tellraw @a ["",{{"text":"{username} (DISCORD): ","color":"#ff8d84"}},{{"text":"{message}","color":"white"}}]'
def get_task(self): def get_task(self):
return self.bot.loop.create_task(self.establish_websocket_connection(), name="Pterodactyl Websocket Connection") return self.bot.loop.create_task(self.establish_websocket_connection(), name="Pterodactyl Websocket Connection")