From 969a6b900b2a1f4aa6d79807a983a93447d46bcf Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Thu, 3 Aug 2023 11:57:27 -0400 Subject: [PATCH] !whohas fix --- src/games/hvacoins/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/games/hvacoins/index.js b/src/games/hvacoins/index.js index ee7b3f3..92aeb65 100644 --- a/src/games/hvacoins/index.js +++ b/src/games/hvacoins/index.js @@ -2028,7 +2028,7 @@ command( const achName = args.join(' ') const matcher = fuzzyMatcher(achName) const achievement = Object.entries(achievements) - .find(([name, ach]) => [name, ach.name].some(matcher.test)) + .find(([name, ach]) => [name, ach.name].some(n => matcher.test(n))) if (!achievement || !user.achievements[achievement[0]]) { return say(`You don't have any achievement matching '${achName}'`) }