Prevent blacklisted users from playing games

This commit is contained in:
Dragon Fire
2021-02-14 20:46:12 -05:00
parent ddd1eeb317
commit f98e1700d5
29 changed files with 30 additions and 10 deletions
+1 -1
View File
@@ -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...');