node-nude ist kacke
This commit is contained in:
parent
920e3088fd
commit
fa8f3941b5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user