-
Notifications
You must be signed in to change notification settings - Fork 0
/
config_template.py
27 lines (23 loc) · 1.27 KB
/
config_template.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
# rename this file to config.py
TELEID = "" # Go to link below
TELEHASH = "" # https://my.telegram.org/
TELEST = "" # Telegram string to login to
SPOTIPYID = "" # Go to link below
SPOTIPYHS = "" # https://developer.spotify.com/dashboard/
SPOTIPYUN = "" # Your spotify username
SPOTIPYRU = "" # The redirect url for spotify login
SPOTIPYCACHE = "" # basically the same string as in util/spotify.cache
SPOTIPYSC = "ugc-image-upload playlist-read-private playlist-read-collaborative playlist-modify-private playlist-modify-public user-read-currently-playing user-top-read user-read-playback-state"
GISTTOKEN = "" # Go to below link and make sure you check 'gist'
GISTID = "" # https://github.com/settings/tokens
DCTOKEN = "" # A discord token to login to ur bot
DCGUILD = "" # guild id of your server
# A small powershell script to escape when using GitHub actions
#
# $a = Get-Content config.py -Raw -Encoding utf8
# $chars = ("\", '"', "(", ")")
# foreach ($char in $chars) { $a = ($a -replace "\$char", "\$char") }
# $a = ($a -replace "\s*#.*(\n|$)", "`n" -replace "\n{2,}", "`n")
# $a | Out-File config2.py -Encoding utf8
# Also, if to insert spotify.cache to config.py: spotify['CACHE']
# (Get-Content .\util\spotify.cache) -replace '"', '\"'