This commit is contained in:
Dragon Fire
2021-02-04 21:02:06 -05:00
parent d19406afc4
commit 6380735d49
+2 -2
View File
@@ -95,7 +95,7 @@ module.exports = class MinesweeperCommand extends Command {
await msg.say('You cannot flag a range.');
continue;
}
// eslint-disable max-depth
/* eslint-disable max-depth */
if (xRange) {
for (let i = x; i <= xRange; i++) {
if (flag) {
@@ -159,7 +159,7 @@ module.exports = class MinesweeperCommand extends Command {
if (win === true || win === false) break;
}
}
// eslint-enable max-depth
/* eslint-enable max-depth */
const newScore = Date.now() - startTime;
const highScoreGet = await this.client.redis.get(`minesweeper-${size}`);
const highScore = highScoreGet ? Number.parseInt(highScoreGet, 10) : null;