node-nude ist kacke

This commit is contained in:
Flummi 2017-01-31 11:04:47 +01:00
parent 920e3088fd
commit fa8f3941b5

View File

@ -1,4 +1,4 @@
var nude = new (require(__dirname+'/../../node_modules/node-nude/node-nude.js')).nude();
var nudity = require('nudity');
module.exports = (lib) => {
lib.trigger.add({
name: 'test',
@ -13,7 +13,7 @@ module.exports = (lib) => {
lib.sql.query("select `dest` from `f0ck`.`items` where `id` = ? limit 1", id, (err, rows) => {
if(rows[0]) {
var filename = __dirname + rows[0].dest;
nude.isnude(filename, (result) => {
nudity.scanFile(filename, (err, result) => {
if(result)
e.reply(id + " is NSFW");
else