mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 10:02:05 +02:00
Prevent blacklisted users from playing games
This commit is contained in:
@@ -33,7 +33,7 @@ module.exports = class ImposterCommand extends Command {
|
||||
if (current) return msg.reply(`Please wait until the current game of \`${current.name}\` is finished.`);
|
||||
this.client.games.set(msg.channel.id, { name: this.name });
|
||||
try {
|
||||
const awaitedPlayers = await awaitPlayers(msg, playersCount, 3);
|
||||
const awaitedPlayers = await awaitPlayers(msg, playersCount, 3, this.client.blacklist.user);
|
||||
if (!awaitedPlayers) {
|
||||
this.client.games.delete(msg.channel.id);
|
||||
return msg.say('Game could not be started...');
|
||||
|
||||
Reference in New Issue
Block a user