changed the last of expect's bots embed (may god rest his soul) to just pingembed

This commit is contained in:
WhatDidYouExpect 2025-07-23 13:38:54 +02:00
parent 10ab18bc51
commit b0ba03f97d

View file

@ -305,7 +305,7 @@ async def ping(ctx: commands.Context) -> None:
await ctx.defer() await ctx.defer()
latency: int = round(bot.latency * 1000) latency: int = round(bot.latency * 1000)
LOLembed: discord.Embed = discord.Embed( pingembed: discord.Embed = discord.Embed(
title="Pong!!", title="Pong!!",
description=( description=(
f"{PING_LINE}\n" f"{PING_LINE}\n"
@ -313,9 +313,9 @@ async def ping(ctx: commands.Context) -> None:
), ),
color=Colour(0x000000) 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'))}") @bot.hybrid_command(description=f"{(_('command_about_desc'))}")
async def about(ctx: commands.Context) -> None: async def about(ctx: commands.Context) -> None:
@ -335,10 +335,8 @@ async def stats(ctx: commands.Context) -> None:
latest_version: str = check_for_update() latest_version: str = check_for_update()
memory_file: str = 'memory.json' memory_file: str = 'memory.json'
file_size: int = os.path.getsize(memory_file) file_size: int = os.path.getsize(memory_file)
with open(memory_file, 'r') as file: with open(memory_file, 'r') as file:
line_count: int = sum(1 for _ in 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: 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_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) 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)