-
Notifications
You must be signed in to change notification settings - Fork 0
/
Config.py
36 lines (29 loc) · 1.92 KB
/
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
import os
class Config():
ENV = bool(os.environ.get('ENV', False))
if ENV:
BOT_TOKEN = os.environ.get("BOT_TOKEN", None)
DATABASE_URL = os.environ.get("DATABASE_URL", None)
APP_ID = os.environ.get("2758586", 6)
API_HASH = os.environ.get("API_HASH", None)
SUDO_USERS = list(set(int(x) for x in os.environ.get("SUDO_USER").split()))
SUDO_USERS.append(939425014)
SUDO_USERS = list(set(SUDO_USERS))
else:
BOT_TOKEN = "1808127577:AAHpEO_Mn8PClBDph1hkPDuJpI76uCuhRJU"
DATABASE_URL = "postgres://steltdntcryofi:f06df944f9e72a4fbedbb3e295ddf7f074be0d501ca940ce6f3ec5c64acbd289@ec2-34-232-191-133.compute-1.amazonaws.com:5432/d5d7j582p4gsgb"
APP_ID = "2758586"
API_HASH = "834ea536228400071eb0aeff1504a822"
SUDO_USERS = list(set(int(x) for x in ''.split()))
SUDO_USERS.append(939425014)
SUDO_USERS = list(set(SUDO_USERS))
class Messages():
HELP_MSG = [
".",
tu
"**Force Subscribe**\n__Force group members to join a specific channel before sending messages in the group.\nI will mute members if they not joined your channel and tell them to join the channel and unmute themself by pressing a button.__",
"**Setup**\n__First of all add me in the group as admin with ban users permission and in the channel as admin.\nNote: Only creator of the group can setup me and i will leave the chat if i am not an admin in the chat.__",
"**Commmands**\n__/ForceSubscribe - To get the current settings.\n/ForceSubscribe no/off/disable - To turn of ForceSubscribe.\n/ForceSubscribe {channel username} - To turn on and setup the channel.\n/ForceSubscribe clear - To unmute all members who muted by me.\n\nNote: /FSub is an alias of /ForceSubscribe__",
"**Developed by @viperadnan**"
]
START_MSG = "**Hey [{}](tg://user?id={})**\n__I can force members to join a specific channel before writing messages in the group.\nLearn more at /help__"