diff options
| author | Sin <[email protected]> | 2020-08-16 21:14:37 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-08-16 21:14:37 +0200 |
| commit | 72b749bda03211bd85e6cd6555b386fb30cfed07 (patch) | |
| tree | 5f1f0428ae731df1745e1082eae9cd074ab6ed2a /server/src | |
| parent | fix: let instead of const (diff) | |
| download | dep-core-72b749bda03211bd85e6cd6555b386fb30cfed07.tar.xz dep-core-72b749bda03211bd85e6cd6555b386fb30cfed07.zip | |
fix: let instead of const
Diffstat (limited to 'server/src')
| -rw-r--r-- | server/src/commands/nsfw/Gelbooru.ts | 3 |
1 files changed, 2 insertions, 1 deletions
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! ⛔'); |