Add Pterodactyl cog #19
1 changed files with 2 additions and 1 deletions
|
@ -151,7 +151,8 @@ 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")
|
||||||
|
|
||||||
async def get_tellraw_string(self, username: str, message: str, color: discord.Color):
|
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):
|
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")
|
||||||
|
|
Loading…
Reference in a new issue