Skip to content

Commit

Permalink
configs
Browse files Browse the repository at this point in the history
  • Loading branch information
Mhdrzn authored Aug 31, 2022
1 parent d5d53a2 commit 04b06c6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import re, os

id_pattern = re.compile(r'^.\d+$')

API_ID = os.environ.get("API_ID", "")

API_HASH = os.environ.get("API_HASH", "")

BOT_TOKEN = os.environ.get("BOT_TOKEN", "")

FORCE_SUB = os.environ.get("FORCE_SUB", None)

DB_NAME = os.environ.get("DB_NAME","")

DB_URL = os.environ.get("DB_URL","")

ADMIN = [int(admin) if id_pattern.search(admin) else admin for admin in os.environ.get('ADMIN', '').split()]

0 comments on commit 04b06c6

Please sign in to comment.