From b825968ad06e2934b92b182261a3ad41812c9b22 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Tue, 27 Oct 2020 00:13:37 -0400 Subject: [PATCH] Fix --- commands/games-sp/horse-info.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/games-sp/horse-info.js b/commands/games-sp/horse-info.js index 6881049b..a75bb857 100644 --- a/commands/games-sp/horse-info.js +++ b/commands/games-sp/horse-info.js @@ -19,7 +19,7 @@ module.exports = class HorseInfoCommand extends Command { validate: horse => { const valid = horses.filter(h => h.name.toLowerCase().includes(horse.toLowerCase())); if (valid.length > 1) return 'Multiple horses found. Please be more specific.'; - return Boolean(horses.length); + return Boolean(valid.length); }, parse: horse => horses.find(h => h.name.toLowerCase().includes(horse.toLowerCase())) }