mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix gunfight high scores
This commit is contained in:
@@ -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.');
|
||||
|
||||
Reference in New Issue
Block a user