Only explicit jokes in NSFW channels

This commit is contained in:
Dragon Fire
2024-03-31 00:48:12 -04:00
parent b99e1de257
commit e5ff8aaff0
+1 -1
View File
@@ -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')