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