diff options
| author | Sin <[email protected]> | 2020-08-16 21:15:16 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-08-16 21:15:16 +0200 |
| commit | c0fdf7b922290442e1b571cb985a8c80631adac4 (patch) | |
| tree | 48111b6f8d91c7ded6dc7aa4d64bf72c01a7196c /server | |
| parent | fix: let instead of const (diff) | |
| download | dep-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.ts | 3 |
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! ⛔'); |