mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user