From 6cdab8363a562e68a8e8dab4cd2d23137672ff25 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sat, 2 Mar 2024 15:38:06 -0500 Subject: [PATCH] misc(pterodactyl): made achievement text bold --- pterodactyl/websocket.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pterodactyl/websocket.py b/pterodactyl/websocket.py index 97cbd57..818e15a 100644 --- a/pterodactyl/websocket.py +++ b/pterodactyl/websocket.py @@ -8,7 +8,7 @@ import aiohttp import discord import websockets from pydactyl import PterodactylClient -from redbot.core.utils.chat_formatting import pagify +from redbot.core.utils.chat_formatting import bold, pagify from pterodactyl.config import config from pterodactyl.logger import logger @@ -244,7 +244,7 @@ async def generate_join_leave_embed(username: str, join: bool) -> discord.Embed: async def generate_achievement_embed(username: str, achievement: str, challenge: bool) -> discord.Embed: embed = discord.Embed() embed.color = discord.Color.dark_purple() if challenge else discord.Color.brand_green() - embed.description = f"{username} has {'completed the challenge' if challenge else 'made the advancement'} {achievement}" + embed.description = f"{bold(username)} has {'completed the challenge' if challenge else 'made the advancement'} {bold(achievement)}" info = await get_info(username) if info: embed.set_author(name=username, icon_url=info['data']['player']['avatar'])