Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update vars.py #6

Open
wants to merge 1 commit into
base: Tech_VJ
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions Adarsh/vars.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@

class Var(object):
MULTI_CLIENT = False
API_ID = int(getenv('API_ID', '20389440'))
API_HASH = str(getenv('API_HASH', 'a1a06a18eb9153e9dbd447cfd5da2457'))
API_ID = int(getenv('API_ID', '28976353'))
API_HASH = str(getenv('API_HASH', 'c06c558c51a3e51e16baa013792ba9d0'))
BOT_TOKEN = str(getenv('BOT_TOKEN', ''))
name = str(getenv('name', 'filetolinkvjbot'))
SLEEP_THRESHOLD = int(getenv('SLEEP_THRESHOLD', '60'))
WORKERS = int(getenv('WORKERS', '4'))
BIN_CHANNEL = int(getenv('BIN_CHANNEL', '-1001935365147'))
BIN_CHANNEL = int(getenv('BIN_CHANNEL', '-1001961933840'))
PORT = int(getenv('PORT', 8080))
BIND_ADRESS = str(getenv('WEB_SERVER_BIND_ADDRESS', '0.0.0.0'))
PING_INTERVAL = int(environ.get("PING_INTERVAL", "1200")) # 20 minutes
OWNER_ID = set(int(x) for x in os.environ.get("OWNER_ID", "6168162777").split())
OWNER_ID = set(int(x) for x in os.environ.get("OWNER_ID", "1681956440").split())
NO_PORT = bool(getenv('NO_PORT', False))
APP_NAME = None
OWNER_USERNAME = str(getenv('OWNER_USERNAME', 'kingvj01'))
OWNER_USERNAME = str(getenv('OWNER_USERNAME', 'P_rofessor_1010'))
if 'DYNO' in environ:
ON_HEROKU = True
APP_NAME = str(getenv('APP_NAME'))
Expand All @@ -35,6 +35,6 @@ class Var(object):
URL = "https://{}/".format(FQDN)
else:
URL = "http://{}/".format(FQDN)
DATABASE_URL = str(getenv('DATABASE_URL', 'mongodb+srv://sushankm16:4i1WAfPYKWyqPIDD@cluster0.sngp9pz.mongodb.net/?retryWrites=true&w=majority'))
UPDATES_CHANNEL = str(getenv('UPDATES_CHANNEL', 'vj_botz'))
DATABASE_URL = str(getenv('DATABASE_URL', 'mongodb+srv://mrunknown8101:3AULNhN3xjOWMQhQ@cluster0.bnanjcr.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0'))
UPDATES_CHANNEL = str(getenv('UPDATES_CHANNEL', 'p_rofessor_101'))
BANNED_CHANNELS = list(set(int(x) for x in str(getenv("BANNED_CHANNELS", "-1001362659779")).split()))