From d7f8b2b50550155ab8260344c547c16e3f136f0a Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Fri, 25 Feb 2022 14:12:17 +0700 Subject: [PATCH] [check] some fixes --- program/sysinfo.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/program/sysinfo.py b/program/sysinfo.py index 4be27be..f030153 100644 --- a/program/sysinfo.py +++ b/program/sysinfo.py @@ -78,8 +78,7 @@ async def give_sysinfo(c: Client, message: Message): @Client.on_message(command(["logs", f"logs@{BOT_USERNAME}"]) & ~filters.edited) @sudo_users_only async def get_bot_logs(c: Client, m: Message): - id = me_bot.id - bot_log_path = f'streambot-logs-{id}.txt' + bot_log_path = f'streambot-logs-{me_bot.id}.txt' if os.path.exists(bot_log_path): try: await m.reply_document(