Open btburbank opened 11 years ago
this is the simplest way possible, put this code in the registered event for people to be added to the queue when they enter the room if they are not already in the queue. however this does not do checks for if their banned for djing like /addme does and you have to add extra code to make it toggleable by command.
//if not in queue already, add to queue
if(queueList.indexOf(data.user[0].userid) === -1)
{
queueList.push(data.user[0].name, data.user[0].userid);
queueName.push(data.user[0].name);
}
Ok, i'll give that a shot and see what happens.
On Sun, Jun 2, 2013 at 6:17 PM, chris larosa notifications@github.comwrote:
this is the simplest way possible, put this code in the registered event for people to be added to the queue when they enter the room if they are not already in the queue. however this does not do checks for if their banned for djing like /addme does and you have to add extra code to make it toggleable by command.
//if not in queue already, add to queue if(queueList.indexOf(data.user[0].userid) === -1){ queueList.push(data.user[0].name, data.user[0].userid); queueName.push(data.user[0].name);}
— Reply to this email directly or view it on GitHubhttps://github.com/samuri51/chillybot/issues/25#issuecomment-18815130 .
How to Automatically add someone to the q when they enter?