rileyio / kiera-bot

A Multi-Use Discord bot
https://kierabot.xyz
MIT License
6 stars 4 forks source link

[Issue] CK Stats Keyholder not working, no response from kiera #26

Closed rileyio closed 4 years ago

rileyio commented 4 years ago

Describe the issue/bug Some users reporting running !ck stats keyholder is not working for them and they're not seeing any response from Kiera. When other users run it its working against the first user's username.

To Reproduce Run !ck stats keyholder for your own stats.

Expected behavior Either stats printed or a response stating possible issues.

Server side error

 TypeError: Cannot read property 'keyholder' of undefined
    at MessageRoute.<anonymous> (.../app/commands/chastikey/stats.js:179:53)

Referenced code

 showAverage: user.ChastiKey.preferences.keyholder.showAverage
rileyio commented 4 years ago

Putting a fix into 5.1.1 - Since it's not easy to test this I'll close this issue and rely on future reports if any of this issue.