diff --git a/commands/games-sp/minesweeper.js b/commands/games-sp/minesweeper.js index 5440be6f..ada57f13 100644 --- a/commands/games-sp/minesweeper.js +++ b/commands/games-sp/minesweeper.js @@ -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; diff --git a/commands/util-public/high-scores.js b/commands/util-public/high-scores.js index 160d6c51..9267b0fe 100644 --- a/commands/util-public/high-scores.js +++ b/commands/util-public/high-scores.js @@ -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;