This commit is contained in:
Dragon Fire
2020-06-11 18:07:17 -04:00
parent c1126f32ba
commit b1cdd77941
+4 -2
View File
@@ -182,8 +182,10 @@ module.exports = class Util {
static async awaitPlayers(msg, max, min = 1) {
if (max === 1) return [msg.author.id];
const addS = min - 1 > 1 ? 's': '';
await msg.say(`You will need at least ${min - 1} more player${addS} (at max ${max - 1}). To join, type \`join game\`.`);
const addS = min - 1 > 1 ? 's' : '';
await msg.say(
`You will need at least ${min - 1} more player${addS} (at max ${max - 1}). To join, type \`join game\`.`
);
const joined = [];
joined.push(msg.author.id);
const filter = res => {