diff --git a/src/inc/trigger/sandbox.js b/src/inc/trigger/sandbox.js index d0a6a86..90e1ebc 100644 --- a/src/inc/trigger/sandbox.js +++ b/src/inc/trigger/sandbox.js @@ -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}`); } }); };