diff --git a/src/trigger/f0ckrand.js b/src/trigger/f0ckrand.js index 21358e3..764d972 100644 --- a/src/trigger/f0ckrand.js +++ b/src/trigger/f0ckrand.js @@ -10,11 +10,7 @@ module.exports = (lib) => { inc: [], exc: [] }; - - e.reply( JSON.stringify( args ) ); - e.reply( JSON.stringify( params ) ); - - + for(let i = 0; i < args.length; i++) { let name = args[0]; if(name.charAt(0) === "!") @@ -29,8 +25,6 @@ module.exports = (lib) => { let where = params.inc.concat(params.exc).join(' || '); let query = `SELECT id, username FROM f0ck.items ${where.length > 0 ? `WHERE ${where}` : ''} ORDER BY rand() LIMIT 1`; - e.reply( query ); - e.reply( JSON.stringify( vars ) ); lib.sql.query(query, vars, (err, rows) => { e.reply(!err && rows.length > 0 ? `f0ckrnd: ${lib.cfg.main.url}/${rows[0].id} by: ${rows[0].username}` : 'nothing found, f0cker'); });