This commit is contained in:
Dragon Fire
2024-05-08 00:47:45 -04:00
parent 7380f6ecf3
commit 16f7d93ee6
+1 -1
View File
@@ -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()