From 33fea2bd8bd12853faa9b381be69848e1f51a72c Mon Sep 17 00:00:00 2001 From: lilyissillyyy Date: Thu, 18 Sep 2025 17:31:05 -0400 Subject: [PATCH] Fix --- commands/games-sp/sorting-hat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/games-sp/sorting-hat.js b/commands/games-sp/sorting-hat.js index c7d4a0e9..943f8d7e 100644 --- a/commands/games-sp/sorting-hat.js +++ b/commands/games-sp/sorting-hat.js @@ -67,8 +67,8 @@ module.exports = class SortingHatCommand extends Command { time: 120000 }); if (!choice.size) return msg.say('Oh no, you ran out of time! Too bad.'); + if (choice.first().content.toUpperCase() === 'END') return msg.say('See you next time!'); const answer = answers[choices.indexOf(choice.first().content.toUpperCase())]; - if (answer === 'END') return msg.say('See you next time!'); for (const [house, amount] of Object.entries(answer.points)) points[house] += amount; ++turn; }