From 20fb56734326bce044a28153702e9f5087d93957 Mon Sep 17 00:00:00 2001 From: 5hojib Date: Tue, 3 Dec 2024 09:15:40 +0600 Subject: [PATCH] update __init__.py --- bot/__init__.py | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/bot/__init__.py b/bot/__init__.py index 0a1b74e6d..aee948d48 100644 --- a/bot/__init__.py +++ b/bot/__init__.py @@ -517,7 +517,6 @@ def format(self, record): alive = Popen(["python3", "alive.py"]) -sleep(0.5) aria2 = API(ariaClient(host="http://localhost", port=6800, secret="")) @@ -535,25 +534,6 @@ def format(self, record): ) -def aria2c_init(): - try: - link = "https://linuxmint.com/torrents/lmde-5-cinnamon-64bit.iso.torrent" - dire = "/usr/src/app/downloads/".rstrip("/") - aria2.add_uris([link], {"dir": dire}) - sleep(3) - downloads = aria2.get_downloads() - sleep(10) - aria2.remove(downloads, force=True, files=True, clean=True) - except Exception as e: - error(f"Aria2c initializing error: {e}") - - -Thread(target=aria2c_init).start() -sleep(1.5) - -Thread(target=aria2c_init).start() -sleep(1.5) - aria2c_global = [ "bt-max-open-files", "download-result",