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

DJ can no longer join Roulette #135

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

DJ can no longer join Roulette #135

wants to merge 1 commit into from

Conversation

Benchmaker
Copy link
Contributor

No description provided.

@NiceATC
Copy link

NiceATC commented Feb 16, 2018

joinCommand: {
command: 'join',
rank: 'user',
type: 'exact',
functionality: function(chat, cmd) {
if (this.type === 'exact' && chat.message.length !== cmd.length) return void(0);
if (!basicBot.commands.executable(this.rank, chat)) return void(0);
else {
var id = chat.uid;
var name = chat.un;
var isDj;
if (typeof API.getDJ() != "undefined") {
isDj = API.getDJ().id == id ? true : false;
} else {
isDj = false;
}
var djlist = API.getWaitList();
if (isDj === true)
API.sendChat("@" + name + " you can only enter roulette when you are not the DJ.");
if (isDj === false)
if (basicBot.room.roulette.rouletteStatus && basicBot.room.roulette.participants.indexOf(chat.uid) < 0) {
basicBot.room.roulette.participants.push(chat.uid);
API.sendChat(subChat(basicBot.chat.roulettejoin, {
name: chat.un
}));
}
}
}
},

@NiceATC
Copy link

NiceATC commented Feb 16, 2018

:)

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

Successfully merging this pull request may close these issues.

2 participants