Skip to content
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
16 changes: 8 additions & 8 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
from logging.handlers import RotatingFileHandler

# Recommended
TG_BOT_TOKEN = os.environ.get("TG_BOT_TOKEN", "")
APP_ID = int(os.environ.get("APP_ID", ""))
API_HASH = os.environ.get("API_HASH", "")
TG_BOT_TOKEN = os.environ.get("TG_BOT_TOKEN", "8361204486:AAG8i0KkEERDMXwFKCmZeY9XHCqA7e9GIeE")
APP_ID = int(os.environ.get("APP_ID", "22598556"))
API_HASH = os.environ.get("API_HASH", "13de810dc195444b916676126904df4d")

# Main
OWNER_ID = int(os.environ.get("OWNER_ID", "6497757690"))
OWNER_ID = int(os.environ.get("OWNER_ID", "7763718590"))
PORT = os.environ.get("PORT", "8080")

# Database
DB_URI = os.environ.get("DB_URI", "")
DB_URI = os.environ.get("DB_URI", "mongodb+srv://Sasuke_db_user:UI9EuEPlxYFzq3FG@cluster0.ewoo4eq.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0")
DB_NAME = os.environ.get("DB_NAME", "link")

#Auto approve
Expand Down Expand Up @@ -57,19 +57,19 @@

# Logging
LOG_FILE_NAME = "links-sharingbot.txt"
DATABASE_CHANNEL = int(os.environ.get("DATABASE_CHANNEL", "")) # Channel where user links are stored
DATABASE_CHANNEL = int(os.environ.get("DATABASE_CHANNEL", "-1003069647075")) # Channel where user links are stored
#--- ---- ---- --- --- --- - -- - - - - - - - - - - - - -- - -

try:
ADMINS = []
for x in (os.environ.get("ADMINS", "6497757690").split()):
for x in (os.environ.get("ADMINS", "7763718590").split()):
ADMINS.append(int(x))
except ValueError:
raise Exception("Your Admins list does not contain valid integers.")

# Admin == OWNER_ID
ADMINS.append(OWNER_ID)
ADMINS.append(6497757690)
ADMINS.append(7763718590)


logging.basicConfig(
Expand Down