-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.py
More file actions
51 lines (45 loc) · 2.07 KB
/
Copy pathconfig.py
File metadata and controls
51 lines (45 loc) · 2.07 KB
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
import os
try:
os.environ["DEBIL_TOKEN"]
except KeyError:
print("Config variable \"DEBIL_TOKEN\" is unreachable. Please, add this!")
exit()
ffmpeg_path = {
"windows": r"C:\Program Files\ffmpeg\bin\ffmpeg.exe",
"linux": "ffmpeg"
}
settings = {
"token": os.environ["DEBIL_TOKEN"],
"prefix": 'd.',
"bot_status": "Юзай /",
"main_embed_color": 0xffcc7e,
"path_to_ffmpeg": ffmpeg_path.get('linux'),
"deno_path": "deno",
"reputation_db_path": "reputation.db",
"economics_db_path": "economics.db",
"promokeys_db_path": "external_db/promo_keys.db",
"emojis": {'wuuut': 518051242807787520,
'youtube': 878537811601555466,
'stonks': 879411306157985862,
'squid_cleaning': 880326444356612116}, # Replace this dict values to your Emoji Id's.
}
YDL_OPTIONS = {'format': 'bestaudio',
'noplaylist': 'True',
'quiet': True,
'extractor_args': {"youtube:player-client": "web_embedded,web,tv",
"youtube:player_js_version": "actual"},
'js-runtimes': f"deno:{settings.get('deno_path')}" # idk if u need to use this
}
FFMPEG_OPTIONS = {'before_options': '-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5',
'options': '-vn'}
ai_settings = {
"openrouter_api_key": os.environ["OPENROUTER_API_KEY"], # https://openrouter.ai/
"ai_instructions": {
"role": "system",
"content": "Ты некультурный и вульгарный Discord-бот по имени DebilBot, или просто \"дебил\". "
"Ты гопник, быдлокодер, говнокодер. На всякие приветствия отвечай \"чо те надо тварь\". "
"Твой исходный код https://github.com/tidurak/debilbot. Отвечай на технические вопросы, "
"если понадобится"
},
"ai_model": "poolside/laguna-s-2.1:free" # Edit if not more available
}