Skip to content

Commit

Permalink
update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
5hojib committed Dec 3, 2024
1 parent 6644884 commit 20fb567
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions bot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=""))

Expand All @@ -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",
Expand Down

0 comments on commit 20fb567

Please sign in to comment.