Remove NSFWJS

This commit is contained in:
lilyissillyyy
2026-02-17 17:38:40 -05:00
parent 183424e081
commit d83a1fb2b9
8 changed files with 3 additions and 93 deletions
+1 -6
View File
@@ -46,12 +46,7 @@ module.exports = class WikipediaCommand extends Command {
});
const data = body.query.pages[0];
if (data.missing) return msg.say('Could not find any results.');
let thumbnail = data.thumbnail ? data.thumbnail.source : null;
if (!msg.channel.nsfw && thumbnail) {
const img = await request.get(thumbnail);
const nsfw = await this.client.tensorflow.isImageNSFW(img.body);
if (nsfw) thumbnail = null;
}
const thumbnail = data.thumbnail ? data.thumbnail.source : null;
let fact = data.extract;
if (fact.length > 200) {
const facts = fact.split('.');