-
Notifications
You must be signed in to change notification settings - Fork 44
actions
- activatePlaylist
- addSongToPlaylist
- [connect]([actions] connect)
- createPlaylist
- getAdmins
- getAmbassadors
- getAudience
- getDJ
- getDJs
- getHost
- getMedia
- getPlaylists
- getRoomScore
- getSelf
- getStaff
- getTimeElapsed
- getTimeRemaining
- getUser
- getUsers
- getWaitList
- getWaitListPosition
- [log]([actions] log)
- [meh]([actions] meh)
- playlistMoveSong
- [sendChat]([actions] sendChat)
- [setLogObject deprecated]([actions] setLogger)
- [setLogger]([actions] setLogger)
- [woot]([actions] woot)
- moderateAddDJ
- [moderateBanUser]([actions] moderateBanUser)
- moderateDeleteChat
- moderateForceSkip
- moderateLockWaitList
- moderateRemoveDJ
- moderateSetRole
- [moderateUnbanUser]([actions] moderateUnbanUser)
- [moderateUnBanUser deprecated]([actions] moderateUnbanUser)
Vote on the actual song with a string.
string (required)
Either 'up' or 'down', calls the appropriate function (woot() or meh()).
callback (optional)
This is not a parameter!
bot.vote('up'); //woot the songbot.vote('down'); //meh the songChange actual room information. Only available if you are the host.
string (required)
A (new) name for the room.
string (required)
The rooms description.
callback (optional)
This is not a parameter!
bot.changeRoomInfo('Hello World', 'This is a new description for my room.');If you are in a room and you are host, you can change the room options with this function.
boolean (required)
Toggles the booths state (locked or unlocked).
boolean (required)
Is there a waitlist in this room?
integer (required)
Maximum Plays per DJ.
integer (required)
Limit DJs on the booth to this number (usually 5).
callback (optional)
This is not a parameter!
bot.changeRoomOptions(false, false, 1, 5);Joins the DJ booth if there is a free place.
callback (optional)
This is not a parameter!
bot.joinBooth();Leave the DJ booth.
callback (optional)
This is not a parameter!
bot.leaveBooth();Removes a DJ from the DJ booth if possible. The user has to be in the booth and you need the permission to remove DJs from the booth.
callback (optional)
This is not a parameter!
bot.removeDJ('xxxxxxxxxxxxxxxxxxxxxxxx');Moves a DJ to a new position in the waitlist. Waitlist numbering beings with position 1.
string (required)
integer (required, range: 1-50)
callback (optional)
This is not a parameter!
bot.moveDJ('xxxxxxxxxxxxxxxxxxxxxxxx',4);Skips the current song. You need to be DJ or have the permission to skip a song.
callback (optional)
This is not a parameter!
bot.skipSong();Returns an object containing all the users currently in the room at the moment of calling. Identical to Plug.DJ's API.getUsers()
Returns array containing ambassadors currently in the room
The 'playlist' argument must be a playlist object, the type that is returned from getPlaylists(). Song id is the the id of the song you wish to move, position an integer of where in the playlist it should be moved to (0 = first).