forked from TeamKillerX/Akeno-Userbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
87 lines (80 loc) · 2.47 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
import os
from os import getenv
from dotenv import load_dotenv
load_dotenv()
API_ID = os.environ["API_ID"]
API_HASH = os.environ["API_HASH"]
SESSION = os.environ["SESSION"]
GOOGLE_API_KEY = os.environ["GOOGLE_API_KEY"]
MONGO_URL = os.environ["MONGO_URL"]
CMD_HANDLER = getenv("CMD_HANDLER", ".")
DOMAIN_DEV_API = "https://akeno.randydev.my.id"
CHROME_DRIVER = "/usr/bin/chromedriver"
CHROME_BIN = "/usr/bin/google-chrome-stable"
DWL_DIR = "./downloads/"
TEMP_DIR = "./temp/"
AFK_CACHE = {}
BOT_CMD_INFO = {}
BOT_CMD_MENU = {}
BOT_HELP = {}
CMD_INFO = {}
CMD_MENU = {}
HELP_DICT = {}
TEMPLATES = {}
class ENV_TEMPLATE:
airing_template = "AIRING_TEMPLATE"
airpollution_template = "AIRPOLLUTION_TEMPLATE"
alive_pic = "ALIVE_PIC"
alive_template = "ALIVE_TEMPLATE"
anilist_user_template = "ANILIST_USER_TEMPLATE"
anime_template = "ANIME_TEMPLATE"
btn_in_help = "BUTTONS_IN_HELP"
character_template = "CHARACTER_TEMPLATE"
chat_info_template = "CHAT_INFO_TEMPLATE"
climate_api = "CLIMATE_API"
climate_template = "CLIMATE_TEMPLATE"
command_template = "COMMAND_TEMPLATE"
currency_api = "CURRENCY_API"
custom_pmpermit = "CUSTOM_PMPERMIT"
gban_template = "GBAN_TEMPLATE"
github_user_template = "GITHUB_USER_TEMPLATE"
help_emoji = "HELP_EMOJI"
help_template = "HELP_TEMPLATE"
is_logger = "IS_LOGGER"
log_id = "LOG_ID"
lyrics_api = "LYRICS_API"
manga_template = "MANGA_TEMPLATE"
ocr_api = "OCR_API"
cohere_api_key = "COHERE_API_KEY"
face_clients_name = "FACE_CLIENTS_NAME"
face_token_key = "FACE_TOKEN"
system_prompt = "SYSTEM_PROMPT"
asupan_username = "ASUPAN_USERNAME"
fedban_api_key = "FEDBAN_API_KEY"
ping_pic = "PING_PIC"
ping_template = "PING_TEMPLATE"
pm_logger = "PM_LOGGER"
pm_max_spam = "PM_MAX_SPAM"
pmpermit = "PMPERMIT"
pmpermit_pic = "PMPERMIT_PIC"
remove_bg_api = "REMOVE_BG_API"
thumbnail_url = "THUMBNAIL_URL"
statistics_template = "STATISTICS_TEMPLATE"
sticker_packname = "STICKER_PACKNAME"
tag_logger = "TAG_LOGGER"
telegraph_account = "TELEGRAPH_ACCOUNT"
time_zone = "TIME_ZONE"
unload_plugins = "UNLOAD_PLUGINS"
unsplash_api = "UNSPLASH_API"
usage_template = "USAGE_TEMPLATE"
user_info_template = "USER_INFO_TEMPLATE"
os_configs = [
"API_HASH",
"API_ID",
"SESSION",
"GOOGLE_API_KEY",
"CMD_HANDLER",
]
all_env: list[str] = [
value for key, value in ENV_TEMPLATE.__dict__.items() if not key.startswith("__")
]