mock
This commit is contained in:
parent
4fadc9c0db
commit
1e6ea294ff
|
@ -392,4 +392,16 @@ export default bot => {
|
||||||
e.write(`privmsg ${e.args[0] || e.user.nick} :\u0001VERSION\u0001`);
|
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);
|
||||||
|
}
|
||||||
|
}));
|
||||||
};
|
};
|
Loading…
Reference in New Issue
Block a user