mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-10 19:04:42 +02:00
Fix lint
This commit is contained in:
@@ -130,12 +130,12 @@ module.exports = class ChessCommand extends Command {
|
|||||||
}
|
}
|
||||||
if (turn.first().content.toLowerCase() === 'end') break;
|
if (turn.first().content.toLowerCase() === 'end') break;
|
||||||
if (turn.first().content.toLowerCase() === 'save') {
|
if (turn.first().content.toLowerCase() === 'save') {
|
||||||
const author = turn.first().author;
|
const { author } = turn.first();
|
||||||
const alreadySaved = await this.client.redis.get(`chess-${author.id}`);
|
const alreadySaved = await this.client.redis.get(`chess-${author.id}`);
|
||||||
if (alreadySaved) {
|
if (alreadySaved) {
|
||||||
await msg.say('You already have a saved game, do you want to overwrite it?');
|
await msg.say('You already have a saved game, do you want to overwrite it?');
|
||||||
const verification = await verify(msg.channel, author);
|
const verification = await verify(msg.channel, author);
|
||||||
if (!verification) continue;
|
if (!verification) continue; // eslint-disable-line max-depth
|
||||||
}
|
}
|
||||||
await this.client.redis.set(
|
await this.client.redis.set(
|
||||||
`chess-${author.id}`,
|
`chess-${author.id}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user