Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MysterySD authored Sep 9, 2021
1 parent 243803b commit d37e930
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tobrot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@

from pyrogram import Client

updater = tg.Updater(token=TG_BOT_TOKEN)
bot = updater.bot
dispatcher = updater.dispatcher

if os.path.exists("TorrentLeech-Gdrive.txt"):
with open("Torrentleech-Gdrive.txt", "r+") as f_d:
f_d.truncate(0)
Expand Down Expand Up @@ -120,7 +124,7 @@
RCLONE_COMMAND = os.environ.get("RCLONE_COMMAND", "rclone")
HELP_COMMAND = os.environ.get("HELP_COMMAND", "help")
SPEEDTEST = os.environ.get("SPEEDTEST", "speedtest", f"speedtest@{bot.username}")

TSEARCH_COMMAND = os.environ.get("TSEARCH_COMMAND", "tsearch")
BOT_START_TIME = time.time()
# dict to control uploading and downloading
gDict = defaultdict(lambda: [])
Expand Down Expand Up @@ -156,9 +160,5 @@ def multi_rclone_init():

multi_rclone_init()

updater = tg.Updater(token=TG_BOT_TOKEN)
bot = updater.bot
dispatcher = updater.dispatcher

app = Client("LeechBot", bot_token=TG_BOT_TOKEN, api_id=APP_ID, api_hash=API_HASH, workers=343)

0 comments on commit d37e930

Please sign in to comment.