forked from blizzthewolf/SeaCogs
fix(pterodactyl): fixed broken formatting
This commit is contained in:
parent
510f8c788e
commit
4f95955a04
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ class Pterodactyl(commands.Cog):
|
||||||
await message.channel.send(f"Received message from {message.author.id}: {message.content}")
|
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]}))
|
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:
|
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"])
|
@commands.group(autohelp = True, name = "pterodactyl", aliases = ["ptero"])
|
||||||
async def pterodactyl(self, ctx: commands.Context):
|
async def pterodactyl(self, ctx: commands.Context):
|
||||||
|
|
Loading…
Reference in a new issue