TS3AudioBot
TS3AudioBot copied to clipboard
Start Temp. Bot mit Identität
Hey,
Ich programmiere zurzeit ein Webinterface womit man Bots auf verschiedenden Servern Automatisch nach der Auslastung starten, hier zu nutze ich Temporäre Bots, soweit klappt alles. Das Problem daran ist nur: die Identität ändern sich dadurch immer, das ist nicht so gut. Kann ich einen Temporären Bot mit einer bestimmten Identität starten? Evt bei der Webapi was angeben: /bot/connect/to/{address}/{password}(/Identität/({Identität}) oder so ähnlich. Wäre super!
Mfg
Please keep issues in english. Not everyone here speaks german.
If you create a bot with a name, you can set the identity afterwards with
!set bot set <botname> connect.identity.key <base64 identity>
Of course that identity is only used for new connections, not for already existing ones.
Currently, it is not possible to set the identity in the connect command.
Any specific reason not to just save a bot after connecting with !bot save (name) that way the identity is stored
Saving the Bot creates the safe-file on the specific host, causing the bot to be "new" if it starts on a new instance according to the load-balancing-system used. There are many ways to go about it, but the most simple one is possibly to just save the bot and always start it on that node. I also went throught that struggle and tried everything from temporary bots to shared network storage for the Bots/ folder but the easiest is to just start, then save and always load the bot from the same Node.
As part of some bigger changes, I'm also intagrating json bodies for api requests. Maybe there'll be some opportunities to improve on certain calls by adding additional information in the body then.