This commit is contained in:
Flummi 2018-07-07 18:50:20 +02:00
parent 4fadc9c0db
commit 1e6ea294ff

View File

@ -392,4 +392,16 @@ export default bot => {
e.write(`privmsg ${e.args[0] || e.user.nick} :\u0001VERSION\u0001`);
}
}));
bot._trigger.set("mock", new bot.trigger({
call: /^\.mock .*/i,
set: "uwe",
f: e => {
e.args.shift();
let text = e.args.join(" ");
let mock = "";
text.forEach(l => mock += (l === " ") ? " " : (Math.round(Math.random()) === 0) ? l.toUpperCase() : l.toLowerCase());
e.reply(mock);
}
}));
};