From 674a91ed2378c69bf6b69bdd7b32d0f31da52fa6 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Tue, 16 Mar 2021 21:19:16 -0500 Subject: [PATCH] Fix typo in scoresFormatted variable --- bot/awesomescibo.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/awesomescibo.mjs b/bot/awesomescibo.mjs index 8ca2318..5361c1a 100755 --- a/bot/awesomescibo.mjs +++ b/bot/awesomescibo.mjs @@ -369,7 +369,7 @@ client.on('message', async message => { files.forEach(function (file) { scores.push(`${fs.readFileSync('userScore/' + file, 'utf8')}|<@${file}>`) }); - const scoresFodrmatted = scores.sort(function(a, b){return b.split('|')[0] - a.split('|')[0]}); + const scoresFormatted = scores.sort(function(a, b){return b.split('|')[0] - a.split('|')[0]}); if (scores.length < 10) { message.channel.send("Not enough scores yet!"); return;