From b0ba03f97d0cd69f8aa5552c817ae14084238143 Mon Sep 17 00:00:00 2001 From: WhatDidYouExpect <89535984+WhatDidYouExpect@users.noreply.github.com> Date: Wed, 23 Jul 2025 13:38:54 +0200 Subject: [PATCH] changed the last of expect's bots embed (may god rest his soul) to just pingembed --- main.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/main.py b/main.py index 3048913..3a9f617 100644 --- a/main.py +++ b/main.py @@ -305,7 +305,7 @@ async def ping(ctx: commands.Context) -> None: await ctx.defer() latency: int = round(bot.latency * 1000) - LOLembed: discord.Embed = discord.Embed( + pingembed: discord.Embed = discord.Embed( title="Pong!!", description=( f"{PING_LINE}\n" @@ -313,9 +313,9 @@ async def ping(ctx: commands.Context) -> None: ), color=Colour(0x000000) ) - LOLembed.set_footer(text=f"{(_('command_ping_footer'))} {ctx.author.name}", icon_url=ctx.author.avatar.url) + pingembed.set_footer(text=f"{(_('command_ping_footer'))} {ctx.author.name}", icon_url=ctx.author.avatar.url) - await ctx.send(embed=LOLembed) + await ctx.send(embed=pingembed) @bot.hybrid_command(description=f"{(_('command_about_desc'))}") async def about(ctx: commands.Context) -> None: @@ -335,10 +335,8 @@ async def stats(ctx: commands.Context) -> None: latest_version: str = check_for_update() memory_file: str = 'memory.json' file_size: int = os.path.getsize(memory_file) - with open(memory_file, 'r') as file: line_count: int = sum(1 for _ in file) - embed: discord.Embed = discord.Embed(title=f"{(_('command_stats_embed_title'))}", description=f"{(_('command_stats_embed_desc'))}", color=Colour(0x000000)) embed.add_field(name=f"{(_('command_stats_embed_field1name'))}", value=f"{(_('command_stats_embed_field1value')).format(file_size=file_size, line_count=line_count)}", inline=False) embed.add_field(name=f"{(_('command_stats_embed_field2name'))}", value=f"{(_('command_stats_embed_field2value')).format(local_version=local_version, latest_version=latest_version)}", inline=False)