Add s properly in awaitPlayers

This commit is contained in:
Dragon Fire
2020-07-07 11:39:47 -04:00
parent 2b690f56ff
commit a59830f089
3 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -182,7 +182,7 @@ module.exports = class Util {
static async awaitPlayers(msg, max, min = 1) {
if (max === 1) return [msg.author.id];
const addS = min - 1 > 1 ? 's' : '';
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\`.`
);