mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
Fix
This commit is contained in:
@@ -47,7 +47,7 @@ module.exports = class WikipediaCommand extends Command {
|
||||
let thumbnail = data.thumbnail ? data.thumbnail.source : null;
|
||||
if (!msg.channel.nsfw && thumbnail) {
|
||||
const img = await request.get(data.thumbnail.source);
|
||||
const nsfw = this.client.tensorflow.isImageNSFW(img.body);
|
||||
const nsfw = await this.client.tensorflow.isImageNSFW(img.body);
|
||||
if (nsfw) thumbnail = null;
|
||||
}
|
||||
const embed = new EmbedBuilder()
|
||||
|
||||
Reference in New Issue
Block a user