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 5, 2024
1 parent 3473cd5 commit ed05a9e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,15 @@ def format(self, record):
run(["chmod", "600", ".netrc"], check=False)
run(["cp", ".netrc", "/root/.netrc"], check=False)

trackers = (
check_output(
"curl -Ns https://raw.githubusercontent.com/XIU2/TrackersListCollection/master/all.txt https://ngosang.github.io/trackerslist/trackers_all_http.txt https://newtrackon.com/api/all https://raw.githubusercontent.com/hezhijie0327/Trackerslist/main/trackerslist_tracker.txt | awk '$0' | tr '\n\n' ','",
shell=True,
)
.decode("utf-8")
.rstrip(",")
)

with open("a2c.conf", "a+") as a:
if TORRENT_TIMEOUT is not None:
a.write(f"bt-stop-timeout={TORRENT_TIMEOUT}\n")
Expand Down

0 comments on commit ed05a9e

Please sign in to comment.