From 6953ef28116852b2725de2b962752056cb571d06 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Fri, 26 Jan 2018 14:40:40 +0000 Subject: [PATCH] Beep --- commands/games/captcha-quiz.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/games/captcha-quiz.js b/commands/games/captcha-quiz.js index f008dabd..310bd63a 100644 --- a/commands/games/captcha-quiz.js +++ b/commands/games/captcha-quiz.js @@ -43,7 +43,7 @@ module.exports = class CaptchaQuizCommand extends Command { randomText(len) { const pool = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ23456789'.split(''); const result = []; - for (let i = 0; i > len; i++) result.push(pool[Math.floor(Math.random() * pool.length)]); + for (let i = 0; i < len; i++) result.push(pool[Math.floor(Math.random() * pool.length)]); return result.join(''); } };