Skip to content

Commit 307424f

Browse files
author
Swapy97
authored
#createInstance "backend" option added.
Since SinusBot now allows to also support Discord, we have to specify the appropriate backend on creation of a bot. Most people would want to use ts3, so I set it as default. I dont know if the class would work with discord as backend because I dont really know much about VoIP in Discord.
1 parent fdf6da0 commit 307424f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sinusbot.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1677,8 +1677,8 @@ public function selectInstance($instanceUUID) {
16771677
* @param string $nickname Nickname
16781678
* @return array status
16791679
*/
1680-
public function createInstance($nickname = "TS3index.com MusicBot") {
1681-
return $this->request('/bot/instances', 'POST', json_encode(array("nick" => $nickname)));
1680+
public function createInstance($nickname = "TS3index.com MusicBot", $backend = "ts3") {
1681+
return $this->request('/bot/instances', 'POST', json_encode(array("backend" => $backend, "nick" => $nickname)));
16821682
}
16831683

16841684

0 commit comments

Comments
 (0)