-
Notifications
You must be signed in to change notification settings - Fork 81
/
config.py
30 lines (23 loc) · 937 Bytes
/
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
#
# Copyright (C) 2021-2022 by TeamYukki@Github, < https://github.com/TeamYukki >.
#
# This file is part of < https://github.com/TeamYukki/YukkiAFKBot > project,
# and is released under the "GNU v3.0 License Agreement".
# Please see < https://github.com/TeamYukki/YukkiAFKBot/blob/master/LICENSE >
#
# All rights reserved.
#
from os import getenv
from dotenv import load_dotenv
load_dotenv()
# Get it from my.telegram.org
API_ID = int(getenv("API_ID"))
API_HASH = getenv("API_HASH")
## Get it from @Botfather in Telegram.
BOT_TOKEN = getenv("BOT_TOKEN")
# Database to save your chats and stats... Get MongoDB:- https://notreallyshikhar.gitbook.io/yukkimusicbot/deployment/mongodb#4.-youll-see-a-deploy-cloud-database-option.-please-select-shared-hosting-under-free-plan-here
MONGO_DB_URI = getenv("MONGO_DB_URI", None)
# SUDO USERS
SUDO_USER = list(
map(int, getenv("SUDO_USER", "").split())
) # Input type must be interger