This commit is contained in:
Dragon Fire
2024-03-31 00:48:53 -04:00
parent e5ff8aaff0
commit 73604461ce
+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
? 'explicit'
? ['explicit']
: this.categories.filter(cat => !nsfwCategories.includes(cat));
const { body } = await request
.get('https://api.chucknorris.io/jokes/random')