refactor(commands/bot/status): show yt-dlp version

This commit is contained in:
Ryan 2025-01-14 23:40:12 -05:00
parent 5bdfddbbbd
commit 7f07e1bd71
Signed by: ErrorNoInternet
GPG Key ID: 2486BFB7B1E6A4A3

View File

@ -4,6 +4,7 @@ import time
import disnake import disnake
import psutil import psutil
from yt_dlp import version
import arguments import arguments
import commands import commands
@ -27,7 +28,7 @@ async def status(message):
value=f"```{round(client.latency * 1000, 1)} ms```", value=f"```{round(client.latency * 1000, 1)} ms```",
) )
embed.add_field( embed.add_field(
name="RSS", name="Memory",
value=f"```{round(memory_usage, 1)} MiB```", value=f"```{round(memory_usage, 1)} MiB```",
) )
embed.add_field( embed.add_field(
@ -46,14 +47,14 @@ async def status(message):
name="Channels", name="Channels",
value=f"```{channel_count}```", value=f"```{channel_count}```",
) )
embed.add_field(
name="Commands",
value=f"```{len(commands.Command.__members__)}```",
)
embed.add_field( embed.add_field(
name="Disnake", name="Disnake",
value=f"```{disnake.__version__}```", value=f"```{disnake.__version__}```",
) )
embed.add_field(
name="yt-dlp",
value=f"```{version.__version__}```",
)
embed.add_field( embed.add_field(
name="Uptime", name="Uptime",
value=f"```{utils.format_duration(int(time.time() - start_time), short=True)}```", value=f"```{utils.format_duration(int(time.time() - start_time), short=True)}```",