commit
bf3eaa1689
|
@ -5,9 +5,7 @@ module.exports = (lib) => {
|
|||
level: 0,
|
||||
active: 1,
|
||||
func: (e) => {
|
||||
let args = lib.sql.escape(e.message).split(" ");
|
||||
args.shift();
|
||||
args.shift();
|
||||
let args = lib.sql.escape(e.message).split(" ").splice(2);
|
||||
|
||||
let query = "select `id`,`username` from `f0ck`.`items` ";
|
||||
if(args.length > 0)
|
||||
|
@ -17,7 +15,7 @@ module.exports = (lib) => {
|
|||
console.log( query );
|
||||
lib.sql.query(query, (err, rows, fields) => {
|
||||
if(!err && rows.length > 0)
|
||||
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}`);
|
||||
else
|
||||
e.reply("nothing found, f0cker");
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user