From 0331b53d768945cf2456b826adc76aa9d2349b6e Mon Sep 17 00:00:00 2001 From: Flummi Date: Wed, 22 Mar 2017 00:37:43 +0100 Subject: [PATCH] debuggsen --- src/trigger/f0ckrand.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/trigger/f0ckrand.js b/src/trigger/f0ckrand.js index 2f813af..f905498 100644 --- a/src/trigger/f0ckrand.js +++ b/src/trigger/f0ckrand.js @@ -16,8 +16,10 @@ module.exports = (lib) => { console.log( query ); lib.sql.query(query, (err, rows, fields) => { - if(!err) + if(!err && rows.length > 0) e.reply("f0ckrnd: "+lib.cfg.main.url+"/"+rows[0].id+" by: "+rows[0].username); + else + e.reply("nothing found, f0cker"); }); }, desc: 'Random-f0ck'