diff --git a/misskaty/plugins/dev.py b/misskaty/plugins/dev.py index 16f76029..b3369bc8 100644 --- a/misskaty/plugins/dev.py +++ b/misskaty/plugins/dev.py @@ -129,7 +129,7 @@ async def server_stats(self: Client, ctx: Message) -> "Message": (progress - 7, coordinate - 25, progress + 15, coordinate), fill="#FFFFFF" ) - total, used, free = disk_usage_percent(".") + total, used, free = disk_usage(".") process = Process(os.getpid()) botuptime = get_readable_time(time() - BotStartTime) diff --git a/misskaty/plugins/ytdl_plugins.py b/misskaty/plugins/ytdl_plugins.py index 307fac97..398c5022 100644 --- a/misskaty/plugins/ytdl_plugins.py +++ b/misskaty/plugins/ytdl_plugins.py @@ -69,7 +69,7 @@ async def ytdownv2(self: Client, ctx: Message, strings): return await ctx.reply_msg(strings("no_channel")) if ctx.command and len(ctx.command) == 1: 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: try: x = await ytdl.parse(url, extract=True)