This commit is contained in:
Flummi 2017-11-22 23:55:20 +01:00
parent bff560ee2e
commit 964301d148

View File

@ -92,9 +92,8 @@ module.exports = bot => {
active: true,
clients: ["irc"],
f: e => {
const args = e.message.substring(8);
const out = Array(args).fill("f".charCodeAt(0)).join("").length
e.write(`PRIVMSG ${e.channel} :${out}`);
const args = parseInt(e.message.substring(8));
e.write(`PRIVMSG ${e.channel} :${Array(args).fill("f".charCodeAt(0)).join("").length}`);
}
});
};