Fix gunfight high scores

This commit is contained in:
Dragon Fire
2024-03-21 17:46:36 -04:00
parent e35893abc3
commit 7d3170efa8
+1 -1
View File
@@ -55,7 +55,7 @@ module.exports = class GunfightCommand extends Command {
const user = await fetchHSUserDisplay(this.client, highScoreUser);
if (scoreBeat) {
await this.client.redis.set('reaction-time', newScore);
await this.client.redis.set('reaction-time-user', winner.first().author);
await this.client.redis.set('reaction-time-user', winner.first().author.id);
}
this.client.games.delete(msg.channel.id);
if (!winner.size) return msg.say('Oh... No one won.');