From e5ff8aaff05d00082779cda15fe6f9f4e21552df Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 31 Mar 2024 00:48:12 -0400 Subject: [PATCH] Only explicit jokes in NSFW channels --- commands/random-res/chuck-norris.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/random-res/chuck-norris.js b/commands/random-res/chuck-norris.js index c8396562..d8d59d6f 100644 --- a/commands/random-res/chuck-norris.js +++ b/commands/random-res/chuck-norris.js @@ -31,7 +31,7 @@ module.exports = class ChuckNorrisCommand extends Command { async run(msg) { if (!this.categories) await this.fetchCategories(); const categories = msg.channel.nsfw - ? this.categories + ? 'explicit' : this.categories.filter(cat => !nsfwCategories.includes(cat)); const { body } = await request .get('https://api.chucknorris.io/jokes/random')