module.exports = (bot, trigger, lib) => { trigger.add({ name: 'user', call: /^\!user( \@.*)?/i, level: 0, active: 1, func: (e) => { var tmp = e.message.match(/^\!user( +@(.*))?/i); if(tmp[2] !== undefined) { // e nachbauen xD var etmp = { network: e.network, user: { getNick: () => { return tmp[2].trim(); } } }; lib.getUser(etmp, (cbgu) => { e.reply(cbgu); }); } else { lib.getUser(e, (cbgu) => { e.reply(cbgu); }); } }, desc: 'get Userdata' }); };