Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Commit

Permalink
spam
Browse files Browse the repository at this point in the history
Signed-off-by: anas <[email protected]>
  • Loading branch information
anasty17 committed Sep 22, 2021
1 parent d888a1e commit 452eb36
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions bot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,17 +193,22 @@ def get_client() -> qba.TorrentsAPIMixIn:
telegraph_token = telegraph.get_access_token()

try:
TG_SPLIT_SIZE = int(getConfig('TG_SPLIT_SIZE'))
if len(f'TG_SPLIT_SIZE') == 0 or TG_SPLIT_SIZE > 2097152000:
TG_SPLIT_SIZE = getConfig('TG_SPLIT_SIZE')
if len(TG_SPLIT_SIZE) == 0 or int(TG_SPLIT_SIZE) > 2097152000:
raise KeyError
else:
TG_SPLIT_SIZE = int(TG_SPLIT_SIZE)
except KeyError:
TG_SPLIT_SIZE = 2097152000
try:
STATUS_LIMIT = int(getConfig('STATUS_LIMIT'))
if len(f'STATUS_LIMIT') == 0:
STATUS_LIMIT = getConfig('STATUS_LIMIT')
if len(STATUS_LIMIT) == 0:
raise KeyError
else:
STATUS_LIMIT = int(STATUS_LIMIT)
except KeyError:
STATUS_LIMIT = None

try:
MEGA_API_KEY = getConfig('MEGA_API_KEY')
except KeyError:
Expand Down

0 comments on commit 452eb36

Please sign in to comment.