This commit is contained in:
Flummi 2018-07-07 18:54:22 +02:00
parent 538137b24f
commit 79125b0fb3

View File

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