mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 15:56:52 +02:00
Fix
This commit is contained in:
@@ -103,7 +103,7 @@ module.exports = class MinesweeperCommand extends Command {
|
||||
const highScoreUser = await this.client.redis.get(`minesweeper-${size}-user`);
|
||||
const scoreBeat = win && (!highScore || highScore > newScore);
|
||||
let user;
|
||||
if (user) {
|
||||
if (minesweeperUser) {
|
||||
try {
|
||||
const fetched = await this.client.users.fetch(highScoreUser);
|
||||
user = fetched.tag;
|
||||
|
||||
@@ -29,7 +29,7 @@ module.exports = class HighScoresCommand extends Command {
|
||||
const minesweeperUser = await this.client.redis.get(`minesweeper-${size}-user`);
|
||||
minesweeperScores[size] = moment.duration(minesweeper).format('mm:ss');
|
||||
let user;
|
||||
if (user) {
|
||||
if (minesweeperUser) {
|
||||
try {
|
||||
const fetched = await this.client.users.fetch(minesweeperUser);
|
||||
user = fetched.tag;
|
||||
|
||||
Reference in New Issue
Block a user