Skip to content
This repository has been archived by the owner on Jul 3, 2021. It is now read-only.

[actions] changeRoom

Michael Nguyen edited this page Jul 27, 2016 · 1 revision

changeRoom(roomID, [callback])

Does NOT establish a new connection to the Plug.dj socket. Changes the room that the bot is in to the new room ID.


Parameters

roomID string

The name of the room to join. This is NOT the URL to the room but instead the identifier for the room.

Example http://plug.dj/test/ would have test as roomID.

callback function (optional)

Callback function to be called with data from server.


Returns

undefined


Example

bot.changeRoom('coding-soundtrack');
Clone this wiki locally