Nickname error
I've just updated my Teamspeak 3 to version 3.7.0
I can no longer get Steam-TS to start. Each time I get the following error:
{ id: 513, msg: 'nickname is already in use' }
I'm currently having to rename the bot in the launchteamspeak.js file each time, i.e: Steam-Bot1, Steam-Bot2.
This works, but only as long as the bot does not crash. As as soon as it does, and PM2 restarts it, it gets the above error that the bot's nickname is already in use.
Unfortunately, the Steam-TS bot crashes quite a lot, hence why I launch it via PM2. The cause of the crashing appears to be:
Random Crashes
Seeing the same error as above, even after the fix #9b3a358
Error: Callback was already called.
at /home/ts3bot/steam-ts/node_modules/async/dist/async.js:837:34
at Object.cb (/home/ts3bot/steam-ts/lib/queryusers.js:49:29)
at LineInputStream.<anonymous> (/home/ts3bot/steam-ts/node_modules/node-teamspeak/index.js:170:35)
at LineInputStream.emit (events.js:182:13)
at LineInputStream.line (/home/ts3bot/steam-ts/node_modules/line-input-stream/lib/line-input-stream.js:8:8)
at Array.forEach (<anonymous>)
at Socket.<anonymous> (/home/ts3bot/steam-ts/node_modules/line-input-stream/lib/line-input-stream.js:36:9)
at Socket.emit (events.js:182:13)
at addChunk (_stream_readable.js:283:12)
at readableAddChunk (_stream_readable.js:264:11)
PM2 lists this error 7 times, and also shows it's restarted the steam-ts bot 7 times, so concluding that this error is causing it to crash.