diff --git a/src/trigger/f0ckrand.js b/src/trigger/f0ckrand.js index 3796c00..3448ae4 100644 --- a/src/trigger/f0ckrand.js +++ b/src/trigger/f0ckrand.js @@ -11,8 +11,13 @@ module.exports = (lib) => { "not": [] }; - for(let i = 0; i < args.length; i++) - params[(args[i].charAt(0) === "!"?"not":"in")].push(args[i].replace("!")); + for(let i = 0; i < args.length; i++) { + let name = args[0]; + if(name.charAt(0) === "!") + params.not.add(name.slice(1)); + else + params.in.add(name); + } let query = "select `id`,`username` from `f0ck`.`items` ";