mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-21 05:54:33 +02:00
Fix
This commit is contained in:
@@ -98,7 +98,7 @@ module.exports = class MafiaCommand extends Command {
|
|||||||
`);
|
`);
|
||||||
const voted = [];
|
const voted = [];
|
||||||
const filter = res => {
|
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 (voted.includes(res.author.id)) return false;
|
||||||
if (!playersArr[Number.parseInt(res.content, 10) - 1]) return false;
|
if (!playersArr[Number.parseInt(res.content, 10) - 1]) return false;
|
||||||
voted.push(res.author.id);
|
voted.push(res.author.id);
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ module.exports = class WizardConventionCommand extends Command {
|
|||||||
`);
|
`);
|
||||||
const voted = [];
|
const voted = [];
|
||||||
const filter = res => {
|
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 (voted.includes(res.author.id)) return false;
|
||||||
if (!playersArr[Number.parseInt(res.content, 10) - 1]) return false;
|
if (!playersArr[Number.parseInt(res.content, 10) - 1]) return false;
|
||||||
voted.push(res.author.id);
|
voted.push(res.author.id);
|
||||||
|
|||||||
Reference in New Issue
Block a user