This commit is contained in:
Daniel Odendahl Jr
2017-09-29 14:53:29 +00:00
parent deff3c901b
commit 44a90cd260
+1 -1
View File
@@ -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)];
}