This commit is contained in:
Daniel Odendahl Jr
2018-11-15 17:39:53 +00:00
parent d91ee8c557
commit b23d6bbfbc
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -98,7 +98,7 @@ module.exports = class MafiaCommand extends Command {
`);
const voted = [];
const filter = res => {
if (!players.exists(p => p.user.id === res.author.id)) return false;
if (!players.some(p => p.user.id === res.author.id)) return false;
if (voted.includes(res.author.id)) return false;
if (!playersArr[Number.parseInt(res.content, 10) - 1]) return false;
voted.push(res.author.id);
+1 -1
View File
@@ -98,7 +98,7 @@ module.exports = class WizardConventionCommand extends Command {
`);
const voted = [];
const filter = res => {
if (!players.exists(p => p.user.id === res.author.id)) return false;
if (!players.some(p => p.user.id === res.author.id)) return false;
if (voted.includes(res.author.id)) return false;
if (!playersArr[Number.parseInt(res.content, 10) - 1]) return false;
voted.push(res.author.id);