forked from TheHamkerCat/WilliamButcherBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample_config.py
51 lines (47 loc) · 1.91 KB
/
sample_config.py
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
from dotenv import load_dotenv
load_dotenv("config.env")
HEROKU = True # NOTE Make it false if you're not deploying on heroku or docker.
if HEROKU:
from os import environ
BOT_TOKEN = environ.get("BOT_TOKEN", None)
API_ID = int(environ.get("API_ID", 6))
API_HASH = environ.get(
"API_HASH", "eb06d4abfb49dc3eeb1aeb98ae0f581e"
)
SESSION_STRING = environ.get("SESSION_STRING", None)
USERBOT_PREFIX = environ.get("USERBOT_PREFIX", ".")
SUDO_USERS_ID = [
int(x) for x in environ.get("SUDO_USERS_ID", "").split()
]
LOG_GROUP_ID = int(environ.get("LOG_GROUP_ID", None))
GBAN_LOG_GROUP_ID = int(environ.get("GBAN_LOG_GROUP_ID", None))
MESSAGE_DUMP_CHAT = int(environ.get("MESSAGE_DUMP_CHAT", None))
WELCOME_DELAY_KICK_SEC = int(
environ.get("WELCOME_DELAY_KICK_SEC", None)
)
MONGO_DB_URI = environ.get("MONGO_DB_URI", None)
ARQ_API_URL = environ.get("ARQ_API_URL", None)
ARQ_API_KEY = environ.get("ARQ_API_KEY", None)
LOG_MENTIONS = bool(int(environ.get("LOG_MENTIONS", None)))
RSS_DELAY = int(environ.get("RSS_DELAY", None))
PM_PERMIT = bool(int(environ.get("PM_PERMIT", None)))
else:
BOT_TOKEN = "467677575:YZfaakjwd545dfg-N6JStihhuw5gQeZHntc"
API_ID = 123456
API_HASH = "dfxcgs5s12hdcxfgdfz"
USERBOT_PREFIX = "."
PHONE_NUMBER = "+916969696969" # Need for Userbot
SUDO_USERS_ID = [
4543744343,
543214651351,
] # Sudo users have full access to everything, don't trust anyone
LOG_GROUP_ID = -100125431255
GBAN_LOG_GROUP_ID = -100125431255
MESSAGE_DUMP_CHAT = -1001181696437
WELCOME_DELAY_KICK_SEC = 300
MONGO_DB_URI = "mongodb+srv://username:password@cluster0.ksiis.mongodb.net/YourDataBaseName?retryWrites=true&w=majority"
ARQ_API_KEY = "Get this from @ARQRobot"
ARQ_API_URL = "https://thearq.tech"
LOG_MENTIONS = True
RSS_DELAY = 300 # In seconds
PM_PERMIT = True