Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto q upon entry #25

Open
btburbank opened this issue Jun 2, 2013 · 2 comments
Open

Auto q upon entry #25

btburbank opened this issue Jun 2, 2013 · 2 comments

Comments

@btburbank
Copy link

How to Automatically add someone to the q when they enter?

@samuri51
Copy link
Owner

samuri51 commented Jun 2, 2013

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);
}  

@btburbank
Copy link
Author

Ok, i'll give that a shot and see what happens.

On Sun, Jun 2, 2013 at 6:17 PM, chris larosa [email protected]:

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//issues/25#issuecomment-18815130
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants