summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server/src/commands/nsfw/Danbooru.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/src/commands/nsfw/Danbooru.ts b/server/src/commands/nsfw/Danbooru.ts
index 833371d..6496527 100644
--- a/server/src/commands/nsfw/Danbooru.ts
+++ b/server/src/commands/nsfw/Danbooru.ts
@@ -33,8 +33,9 @@ export default class DanbooruNSFW extends Command {
public async exec(msg: Message, { tag }): Promise<Message> {
//@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! ⛔');