manual revert

This commit is contained in:
Flummi 2017-01-31 12:55:24 +01:00
parent 500f24ac39
commit ef0aef59ad

View File

@ -1,27 +1,11 @@
var nudity = require('nudity');
module.exports = (lib) => {
lib.trigger.add({
name: 'test',
call: /^!test/i,
level: 0,
active: 1,
active: 0,
func: (e) => {
var args = e.message.split(' ');
var id = args[1];
if(Number.isInteger(parseInt(id))) {
lib.sql.query("select `dest` from `f0ck`.`items` where `id` = ? limit 1", id, (err, rows) => {
if(rows[0]) {
var filename = __dirname + "/../../" + rows[0].dest;
nudity.scanFile(filename, (err, result) => {
if(!result)
e.reply(id + " is maybe SFW");
else
e.reply(id + " is NSFW");
});
}
});
}
},
desc: 'muh'
});