forked from DarkDevil1265/Unlimited-filter-bot-RJ
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample_config.py
50 lines (30 loc) · 1.47 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
import os
import time
class Config(object):
# Get a bot token from botfather
TG_BOT_TOKEN = os.environ.get("TG_BOT_TOKEN", "")
# Get from my.telegram.org (or @UseTGXBot)
API_ID = int(os.environ.get("API_ID", 12345))
# Get from my.telegram.org (or @UseTGXBot)
API_HASH = os.environ.get("API_HASH", "")
# Database URL from https://cloud.mongodb.com/
DATABASE_URI = os.environ.get("DATABASE_URI", "")
# Your database name from mongoDB
DATABASE_NAME = str(os.environ.get("DATABASE_NAME", "Cluster0"))
# ID of users that can use the bot commands
AUTH_USERS = set(str(x) for x in os.environ.get("AUTH_USERS", "").split())
# To save user details (Usefull for getting userinfo and total user counts)
# May reduce filter capacity :(
# Give yes or no
SAVE_USER = os.environ.get("SAVE_USER", "no").lower()
# Go to https://dashboard.heroku.com/account, scroll down and press Reveal API
# To check dyno status
HEROKU_API_KEY = os.environ.get("HEROKU_API_KEY", "")
# OPTIONAL - To set alternate BOT COMMANDS
ADD_FILTER_CMD = os.environ.get("ADD_FILTER_CMD", "add")
DELETE_FILTER_CMD = os.environ.get("DELETE_FILTER_CMDD", "del")
DELETE_ALL_CMD = os.environ.get("DELETE_ALL_CMDD", "delall")
CONNECT_COMMAND = os.environ.get("CONNECT_COMMANDD", "connect")
DISCONNECT_COMMAND = os.environ.get("DISCONNECT_COMMANDD", "disconnect")
# To record start time of bot
BOT_START_TIME = time.time()