This commit is contained in:
Flummi 2018-12-10 16:15:36 +00:00
parent e33e5cffc8
commit 56d4bb048f

View File

@ -380,9 +380,7 @@ export default bot => {
call: /^\.mock .*/i,
set: "uwe",
f: e => {
let mock = "";
[...e.args.join(" ")].forEach(l => mock += (l === " ") ? " " : (Math.round(Math.random()) === 0) ? l.toUpperCase() : l.toLowerCase());
e.reply(mock);
e.reply([...e.args.join(" ")].map(l => (l === " ") ? " " : (Math.round(Math.random()) === 0) ? l.toUpperCase() : l.toLowerCase()).join``);
}
}));