mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-15 08:22:37 +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);
|
const user = await fetchHSUserDisplay(this.client, highScoreUser);
|
||||||
if (scoreBeat) {
|
if (scoreBeat) {
|
||||||
await this.client.redis.set('reaction-time', newScore);
|
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);
|
this.client.games.delete(msg.channel.id);
|
||||||
if (!winner.size) return msg.say('Oh... No one won.');
|
if (!winner.size) return msg.say('Oh... No one won.');
|
||||||
|
|||||||
Reference in New Issue
Block a user