mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-27 06:37:32 +02:00
Fix lint
This commit is contained in:
+4
-2
@@ -182,8 +182,10 @@ module.exports = class Util {
|
|||||||
|
|
||||||
static async awaitPlayers(msg, max, min = 1) {
|
static async awaitPlayers(msg, max, min = 1) {
|
||||||
if (max === 1) return [msg.author.id];
|
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\`.`);
|
await msg.say(
|
||||||
|
`You will need at least ${min - 1} more player${addS} (at max ${max - 1}). To join, type \`join game\`.`
|
||||||
|
);
|
||||||
const joined = [];
|
const joined = [];
|
||||||
joined.push(msg.author.id);
|
joined.push(msg.author.id);
|
||||||
const filter = res => {
|
const filter = res => {
|
||||||
|
|||||||
Reference in New Issue
Block a user