mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 02:15:10 +02:00
Hunger Games, Anagram
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user