Multivit4min / TS3-NodeJS-Library

TeamSpeak 3 Server Query Library supports SSH and RAW Query
https://multivit4min.github.io/TS3-NodeJS-Library/
MIT License
150 stars 20 forks source link

How to do ServerCreate #16

Closed SoulDemon closed 6 years ago

SoulDemon commented 6 years ago

Do you have an example for ServerCreate?

Multivit4min commented 6 years ago

https://github.com/Multivit4min/TS3-NodeJS-Library/wiki/TeamSpeak3#TeamSpeak3+serverCreate

you can use virtualserver properties from here on the bottom of the page https://github.com/marcin-/pardususer.de/blob/master/teamspeak3/files/TeamSpeak%203%20Server%20Query%20Manual.pdf (media.teamspeak.com is currently offline)

for example

ts3.serverCreate({
  virtualserver_name: "TeamSpeak Server Name",
  virtualserver_maxclients: 20
]).then(res => {
  //success
  //res.token holds the serveradmin token
  //res.server holds the created virtual server instance
}).catch(e => {
  console.log("Error", e)
})