!whohas fix
This commit is contained in:
parent
fdc811d49b
commit
969a6b900b
|
@ -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}'`)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue