mirror of
https://github.com/tgbot-collection/ytdlbot.git
synced 2025-02-25 07:44:13 +08:00
Now VIP can be disabled, Previously "False" counted as True because string to boolean conversion (#155)
This commit is contained in:
parent
3794dd9292
commit
d44f57c45c
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ EX = os.getenv("EX", 24 * 3600)
|
|||
MULTIPLY = os.getenv("MULTIPLY", 5) # VIP1 is 5*5-25G, VIP2 is 50G
|
||||
USD2CNY = os.getenv("USD2CNY", 6) # $5 --> ¥30
|
||||
|
||||
ENABLE_VIP = os.getenv("VIP", False)
|
||||
ENABLE_VIP: "bool" = True if os.getenv("VIP", False).lower == "true" else False
|
||||
MAX_DURATION = int(os.getenv("MAX_DURATION", 60))
|
||||
AFD_LINK = os.getenv("AFD_LINK", "https://afdian.net/@BennyThink")
|
||||
COFFEE_LINK = os.getenv("COFFEE_LINK", "https://www.buymeacoffee.com/bennythink")
|
||||
|
|
Loading…
Reference in a new issue