manual revert
This commit is contained in:
parent
500f24ac39
commit
ef0aef59ad
@ -1,27 +1,11 @@
|
|||||||
var nudity = require('nudity');
|
|
||||||
module.exports = (lib) => {
|
module.exports = (lib) => {
|
||||||
lib.trigger.add({
|
lib.trigger.add({
|
||||||
name: 'test',
|
name: 'test',
|
||||||
call: /^!test/i,
|
call: /^!test/i,
|
||||||
level: 0,
|
level: 0,
|
||||||
active: 1,
|
active: 0,
|
||||||
func: (e) => {
|
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'
|
desc: 'muh'
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user