mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Only explicit jokes in NSFW channels
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user