From 44a90cd26030ad8bd532cb8107ec3fab7e5131e0 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Fri, 29 Sep 2017 14:53:29 +0000 Subject: [PATCH] Beep --- commands/text-edit/zalgo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/text-edit/zalgo.js b/commands/text-edit/zalgo.js index edcf93cd..375c84ae 100644 --- a/commands/text-edit/zalgo.js +++ b/commands/text-edit/zalgo.js @@ -34,7 +34,7 @@ module.exports = class ZalgoCommand extends Command { down: Math.floor(Math.random() * 8) + 1 }; for (const type of Object.keys(counts)) { - const count = counts[type]; + let count = counts[type]; const chars = zalgo[type]; while (count--) result += chars[Math.floor(Math.random() * chars.length)]; }