changed the last of expect's bots embed (may god rest his soul) to just pingembed
This commit is contained in:
parent
10ab18bc51
commit
b0ba03f97d
1 changed files with 3 additions and 5 deletions
8
main.py
8
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue