From 717f4b078825448bec73cf150727951edfd7c376 Mon Sep 17 00:00:00 2001 From: Shrimadhav U K Date: Sat, 11 Aug 2018 05:20:15 +0000 Subject: [PATCH] Fix errors --- stdplugins/afk.py | 6 +++--- stdplugins/uploadownload.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/stdplugins/afk.py b/stdplugins/afk.py index 1eb20e6..ea83d02 100644 --- a/stdplugins/afk.py +++ b/stdplugins/afk.py @@ -24,7 +24,7 @@ async def _(event): global PRIVATE_GROUP_BOT_API_ID if not PRIVATE_GROUP_BOT_API_ID: await event.edit("This functionality will not work") - return false + return PRIVATE_GROUP_BOT_API_ID = int(PRIVATE_GROUP_BOT_API_ID) global COUNT_MSG global USERS @@ -62,7 +62,7 @@ async def _(event): global PRIVATE_GROUP_BOT_API_ID if not PRIVATE_GROUP_BOT_API_ID: await event.edit("This functionality will not work") - return false + return PRIVATE_GROUP_BOT_API_ID = int(PRIVATE_GROUP_BOT_API_ID) if event.fwd_from: return @@ -80,7 +80,7 @@ async def _(event): global PRIVATE_GROUP_BOT_API_ID if not PRIVATE_GROUP_BOT_API_ID: await event.edit("This functionality will not work") - return false + return PRIVATE_GROUP_BOT_API_ID = int(PRIVATE_GROUP_BOT_API_ID) global ISAFK global COUNT_MSG diff --git a/stdplugins/uploadownload.py b/stdplugins/uploadownload.py index 4f370ac..d8d21be 100644 --- a/stdplugins/uploadownload.py +++ b/stdplugins/uploadownload.py @@ -10,7 +10,7 @@ from hachoir.metadata import extractMetadata from hachoir.parser import createParser from telethon.tl.types import DocumentAttributeVideo -current_date_time = "./DOWNLOADS/" +current_date_time = "./../DOWNLOADS/" @borg.on(events.NewMessage(pattern=r".download (.*)", outgoing=True))