mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 17:44:50 +00:00
Fixx
This commit is contained in:
parent
fd703a9aba
commit
d9557b828f
2 changed files with 2 additions and 2 deletions
|
|
@ -129,7 +129,7 @@ async def server_stats(self: Client, ctx: Message) -> "Message":
|
||||||
(progress - 7, coordinate - 25, progress + 15, coordinate), fill="#FFFFFF"
|
(progress - 7, coordinate - 25, progress + 15, coordinate), fill="#FFFFFF"
|
||||||
)
|
)
|
||||||
|
|
||||||
total, used, free = disk_usage_percent(".")
|
total, used, free = disk_usage(".")
|
||||||
process = Process(os.getpid())
|
process = Process(os.getpid())
|
||||||
|
|
||||||
botuptime = get_readable_time(time() - BotStartTime)
|
botuptime = get_readable_time(time() - BotStartTime)
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,7 @@ async def ytdownv2(self: Client, ctx: Message, strings):
|
||||||
return await ctx.reply_msg(strings("no_channel"))
|
return await ctx.reply_msg(strings("no_channel"))
|
||||||
if ctx.command and len(ctx.command) == 1:
|
if ctx.command and len(ctx.command) == 1:
|
||||||
return await ctx.reply_msg(strings("invalid_link"))
|
return await ctx.reply_msg(strings("invalid_link"))
|
||||||
url = ctx.input if len(ctx.command) > 1 else ctx.text
|
url = ctx.input if ctx.command and len(ctx.command) > 1 else ctx.text
|
||||||
async with iYTDL(log_group_id=0, cache_path="cache", ffmpeg_location=f"/usr/bin/{FF_MPEG_NAME}") as ytdl:
|
async with iYTDL(log_group_id=0, cache_path="cache", ffmpeg_location=f"/usr/bin/{FF_MPEG_NAME}") as ytdl:
|
||||||
try:
|
try:
|
||||||
x = await ytdl.parse(url, extract=True)
|
x = await ytdl.parse(url, extract=True)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue