-
Notifications
You must be signed in to change notification settings - Fork 5
/
secrets.py
32 lines (23 loc) · 1 KB
/
secrets.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
"""
These are secret variables.
Add your bot token,prefix,allowed userids,
and default destination id/link for the bot
to upload files/folders.
"""
import dotenv,os
dotenv.load_dotenv()
TOKEN = os.getenv("TOKEN") #your bot token
PREFIX = os.getenv("PREFIX") + " " #add a space after the prefix
USERIDS = []
temp = os.getenv("USERIDS").split(',')
if temp[0] != "none":
for user in temp:
USERIDS.append(int(user))
ADMINS = [] # enter user ids of admins here, these are the people who can add people or remove people from 'USERIDS' i.e. decide who can run the bot and who can not. MUST NOT REMAIN EMPTY
tempp = os.getenv("ADMINS").split(',')
for admin in tempp:
ADMINS.append(int(admin))
DESTINATION_ID = os.getenv("DESTINATION_ID") #This is the default destination id for bot to clone to. You can add a folder link here as well.
VERSION = "1.5.0" #This is the bot version. It is recommended that you do not change it.
from utils import getIdFromUrl
DEFAULT_DESTINATION_ID = getIdFromUrl(DESTINATION_ID)