Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Comments

Close side panel

DJ can no longer join Roulette#135

Open
Benchmaker wants to merge 1 commit intobasicBot:masterbasicBot/source:masterfrom
Benchmaker:patch-1Copy head branch name to clipboard
Open

DJ can no longer join Roulette#135
Benchmaker wants to merge 1 commit intobasicBot:masterbasicBot/source:masterfrom
Benchmaker:patch-1Copy head branch name to clipboard

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.