From 4facf21674a393caeafdd6c9e7f717bf69411690 Mon Sep 17 00:00:00 2001 From: Kit Kasune <63122940+WubzyGD@users.noreply.github.com> Date: Sun, 23 May 2021 02:24:11 -0600 Subject: [PATCH] emoji lookup inclusivity leniency wew big wurd am cool --- commands/misc/emoji.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/misc/emoji.js b/commands/misc/emoji.js index c115891..e2b23d2 100644 --- a/commands/misc/emoji.js +++ b/commands/misc/emoji.js @@ -45,7 +45,7 @@ module.exports = { } if (!args[0].match(/^$|^\d+$/gm)) { if (args[0].length > 25) {return message.channel.send("That doesn't seem to be a valid emoji! (Standard Discord emojis don't count :p )");} - let lookup = client.emojis.cache.filter(e => (args[0].length > 4 && e.name.toLowerCase().includes(args[0].toLowerCase())) || e.name.toLowerCase() === args[0].toLowerCase()); + let lookup = client.emojis.cache.filter(e => (args[0].length > 2 && e.name.toLowerCase().includes(args[0].toLowerCase())) || e.name.toLowerCase() === args[0].toLowerCase()); if (!lookup.size) {return message.channel.send("I tried to find some emojis that matched that name, but couldn't find anything. Maybe you didn't give an emoji to begin with?");} let emotes = Array.from(lookup.values()); if (lookup.size > 20) { @@ -119,4 +119,4 @@ module.exports = { return message.channel.send("There was an error getting info for that emoji. You may not have given a valid emoji, or the ID you gave doesn't lead to a real emoji."); } } -}; \ No newline at end of file +};