Hunger Games, Anagram

This commit is contained in:
Daniel Odendahl Jr
2017-10-17 20:43:59 +00:00
parent 5ed18c160f
commit 14d40726b1
15 changed files with 1437 additions and 55 deletions
+8
View File
@@ -91,6 +91,14 @@ class Util {
ctx.putImageData(data, x, y);
return ctx;
}
static async verify(channel, user, time = 30000) {
const verify = await channel.awaitMessages(res => res.author.id === user.id, {
max: 1,
time
});
return verify.size && ['yes', 'y', 'ye', 'yeah', 'yup'].includes(verify.first().content.toLowerCase());
}
}
module.exports = Util;