debuggsen
This commit is contained in:
parent
0dd192bdb6
commit
8c99039312
|
@ -11,9 +11,10 @@ module.exports = (lib) => {
|
||||||
|
|
||||||
let query = "select `id`,`username` from `f0ck`.`items` order by rand() ";
|
let query = "select `id`,`username` from `f0ck`.`items` order by rand() ";
|
||||||
if(args.length > 0)
|
if(args.length > 0)
|
||||||
query += "where `username` = '" + args.join("' || `username` = '");
|
query += "where `username` like '" + args.join("' || `username` like '");
|
||||||
query += "limit 1";
|
query += "limit 1";
|
||||||
|
|
||||||
|
console.log( query );
|
||||||
lib.sql.query(query, (err, rows, fields) => {
|
lib.sql.query(query, (err, rows, fields) => {
|
||||||
if(!err)
|
if(!err)
|
||||||
e.reply("f0ckrnd: "+lib.cfg.main.url+"/"+rows[0].id+" by: "+rows[0].username);
|
e.reply("f0ckrnd: "+lib.cfg.main.url+"/"+rows[0].id+" by: "+rows[0].username);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user