From 72b749bda03211bd85e6cd6555b386fb30cfed07 Mon Sep 17 00:00:00 2001 From: Sin <50817549+8cy@users.noreply.github.com> Date: Sun, 16 Aug 2020 21:14:37 +0200 Subject: fix: let instead of const --- server/src/commands/nsfw/Gelbooru.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/src') diff --git a/server/src/commands/nsfw/Gelbooru.ts b/server/src/commands/nsfw/Gelbooru.ts index a71fce7..a9ec8d7 100644 --- a/server/src/commands/nsfw/Gelbooru.ts +++ b/server/src/commands/nsfw/Gelbooru.ts @@ -34,7 +34,8 @@ export default class GelbooruNSFW extends Command { //@ts-ignore if (!msg.channel.nsfw) return msg.reply('This is not an NSFW marked channel!'); - if (tag) const tags = await tag.trim().toLowerCase(); + let tags; + if (tag) tags = await tag.trim().toLowerCase(); const denylist = ['loli', 'shota', 'cub', 'young', 'child', 'baby', 'guro', 'gore', 'vote', 'scat', 'poop', 'kid', 'kiddie', 'kiddy', 'cp', 'shit', 'turd', 'feces', 'excrement', 'excrete']; if (tags && denylist.includes(tags)) return msg.reply('A denylisted word was used! ⛔'); -- cgit v1.2.3