Phone Command

This commit is contained in:
Dragon Fire
2020-02-28 15:03:41 -05:00
parent d1970d2262
commit 9d5879c8c6
9 changed files with 120 additions and 4 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ module.exports = class Util {
static async verify(channel, user, time = 30000) {
const filter = res => {
const value = res.content.toLowerCase();
return res.author.id === user.id && (yes.includes(value) || no.includes(value));
return (user ? res.author.id === user.id : true) && (yes.includes(value) || no.includes(value));
};
const verify = await channel.awaitMessages(filter, {
max: 1,