-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py.template
72 lines (68 loc) · 1.87 KB
/
config.py.template
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
from sound import Sound
import spotipy
from spotipy.oauth2 import SpotifyOAuth
class Config:
# Spotify
spotify = spotipy.Spotify(
auth_manager=SpotifyOAuth(
client_id="",
client_secret="",
redirect_uri="http://127.0.0.1:6969",
scope="user-read-playback-state user-modify-playback-state",
)
)
# https://developer.spotify.com/documentation/general/guides/authorization/scopes/
# Discord bot token
key = ""
# Sound format in .mp3, even better if in .ogg
sound_path = "sounds/duck-double.ogg"
toasts_sounds_path = "./sounds/toasts"
sounds = [
Sound(
name="train",
files=[
"sounds/start_knop.wav",
"sounds/brno_krpole.wav",
"sounds/end_knop.wav"
],
emote="🚂",
spotify=spotify
),
Sound(
name="knock",
files=[
"sounds/knock.wav",
"sounds/harry_jdu_do_baraku.wav",
"sounds/knock.wav"
],
emote="🔔",
spotify=spotify
),
Sound(
name="poezie",
files=[
"sounds/poezie.wav",
],
emote="📖",
spotify=spotify
),
Sound(
name="gn",
files=[
"sounds/vecernicek.wav"
],
emote=":night_with_stars: :last_quarter_moon_with_face:",
spotify=spotify
),
Sound(
name="fbi",
files=[
"sounds/fbi.wav"
],
emote=":police_car: :man_police_officer:",
spotify=spotify
)
]
wait_time = 180 # in seconds
# KachnaOnline
kachnaonline_url: str = "https://www.su.fit.vutbr.cz/kachna/api/states/current"