summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorSin <[email protected]>2020-08-16 21:15:16 +0200
committerGitHub <[email protected]>2020-08-16 21:15:16 +0200
commitc0fdf7b922290442e1b571cb985a8c80631adac4 (patch)
tree48111b6f8d91c7ded6dc7aa4d64bf72c01a7196c /server
parentfix: let instead of const (diff)
downloaddep-core-c0fdf7b922290442e1b571cb985a8c80631adac4.tar.xz
dep-core-c0fdf7b922290442e1b571cb985a8c80631adac4.zip
fix: let instead of const
Diffstat (limited to 'server')
-rw-r--r--server/src/commands/nsfw/Rule34.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/commands/nsfw/Rule34.ts b/server/src/commands/nsfw/Rule34.ts
index 4aa90fd..2919846 100644
--- a/server/src/commands/nsfw/Rule34.ts
+++ b/server/src/commands/nsfw/Rule34.ts
@@ -34,7 +34,8 @@ export default class Rule34NSFW 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! ⛔');