misc(pterodactyl): made achievement text bold
This commit is contained in:
parent
464483b4c9
commit
6cdab8363a
1 changed files with 2 additions and 2 deletions
|
@ -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'])
|
||||
|
|
Loading…
Reference in a new issue