From 3eb67166f79cb5d268e46400e989eefe0c7461d1 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 3 Sep 2021 16:05:20 +0200 Subject: [PATCH] Fixed issue #1 --- bot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.js b/bot.js index 2c30ac6..86bfb9a 100644 --- a/bot.js +++ b/bot.js @@ -186,7 +186,7 @@ function onMessageHandler (channel, userstate, message, self) { var syllables = words.map(syllabify); var syllableCount = 0; - syllabify.forEach((s) => { + syllables.forEach((s) => { syllableCount += s.length; });