-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathconfig.py
More file actions
26 lines (21 loc) · 953 Bytes
/
config.py
File metadata and controls
26 lines (21 loc) · 953 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import os
from os import path, getenv
from dotenv import load_dotenv
if path.exists("local.env"):
load_dotenv("local.env")
load_dotenv()
class Sophia(object):
admins = {}
BOT_TOKEN = getenv("BOT_TOKEN", None)
CHANNEL = int(os.getenv('CHANNEL', 123456))
API_ID = int(getenv("API_ID", "6"))
API_HASH = getenv("API_HASH", "eb06d4abfb49dc3eeb1aeb98ae0f581e")
SESSION_NAME = getenv("SESSION_NAME", None)
DURATION_LIMIT = int(getenv("DURATION_LIMIT", "15"))
SUDO_USERS = list(map(int, getenv("SUDO_USERS").split()))
ASSISTANT_NAME = getenv("ASSISTANT_NAME", "")
BOT_USERNAME = getenv("BOT_USERNAME", "")
COMMAND_PREFIXES = list(getenv("COMMAND_PREFIXES", "/ ! .").split())
CHANNEL_NAME = getenv("CHANNEL_NAME", "sophiaupdates")
GROUP_NAME = getenv("GROUP_NAME", "SophiaSupport_Official")
OWNER_NAME = getenv("OWNER_NAME", "dihanrandila")