Closed ghost closed 4 years ago
Your printf will remove all "
in the config, breaking the file. Make sure to escape them \"
Should i use printf ' ' or what do you mean
if I use print '' then $ip does not work @Splamy
Replace all "
(double quotes) within your printf with \"
(backslash + double quote)
https://prnt.sc/uqoctf for example like this? @Splamy
yea, now do this for all inbetween the first and last quote of your printf statement
Are you trolling me?
Look 2 characters to the left of the en
, there is another quote
now my script looks so https://pastebin.com/FXQ6SNAZ but i still get the errors @Splamy
I still see at least 10 unescaped quoets here:
server_password = { pw = "", hashed = false, autohash = false }
channel_password = { pw = "", hashed = false, autohash = false }
client_version = { build = "", platform = "", sign = "" }
This is not an issue with the audiobot. You need to learn how bash works. That means, reading tutorials, searching for things like multi-line strings, etc. This could be a starting point for multi-line strings in bash (first result in google): https://stackoverflow.com/questions/23929235/multi-line-string-with-extra-space-preserved-indentation
https://prnt.sc/urb838 of course, the installer has nothing to do with it, but the point is that I get this error when start the audiobot
Yes, because your installer generates invalid config files. Throw your files into a checker like here http://toml-online-parser.ovonick.com/ after you generated them, and if all config files are ok you can post again if something's broken
#Starts the instance when the TS3AudioBot is launched.
run = true
[commands]
[commands.alias]
[connect]
#The server password. Leave empty for none.
server_password = { pw = "" }
#The default channel password. Leave empty for none.
channel_password = { }
#Overrides the displayed version for the ts3 client. Leave empty for default.
client_version = { }
#The address, ip or nickname (and port; default: 9987) of the TeamSpeak3 server
address = ""
[connect.identity]
#||| DO NOT MAKE THIS KEY PUBLIC ||| The client identity. You can import a teamspeak3 identity here too.
key = ""
#The client identity offset determining the security level.
offset = 916
[reconnect]
[audio]
#When a new song starts the volume will be trimmed to between min and max.
#When the current volume already is between min and max nothing will happen.
#To completely or partially disable this feature, set min to 0 and/or max to 100.
volume = { }
[playlists]
[history]
[events]
Hit '}' while parsing a bare key
Line number: 12 Column: 23 Line: channel_password = { }
@Splamy
Seems like the website it randomly picked uses an outdated parser, try this one instead https://toml.rocks/
https://prnt.sc/urcmny How can I see if something is wrong @Splamy
17:45:11.3662|ERROR|| Could not load core config. 17:45:11.3733|ERROR|| Core initialization failed: Could not create config
My installer: