debug yay

This commit is contained in:
Flummi 2017-01-31 11:09:49 +01:00
parent 37ee7ed044
commit 6536bf72e0

View File

@ -12,7 +12,7 @@ module.exports = (lib) => {
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;
var filename = __dirname + "/../../" + rows[0].dest;
nudity.scanFile(filename, (err, result) => {
e.reply(err);
e.reply(result);