mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 10:25:11 +02:00
Fix
This commit is contained in:
@@ -133,13 +133,13 @@ module.exports = class GuesspionageCommand extends Command {
|
|||||||
__**Leaderboard:**__
|
__**Leaderboard:**__
|
||||||
${this.makeLeaderboard(pts).join('\n')}
|
${this.makeLeaderboard(pts).join('\n')}
|
||||||
|
|
||||||
_Next round starting in 10 seconds..._
|
${userTurn.length ? '_Next round starting in 10 seconds..._' : ''}
|
||||||
`);
|
`);
|
||||||
await delay(10000);
|
if (userTurn.length) await delay(10000);
|
||||||
}
|
}
|
||||||
this.client.games.delete(msg.channel.id);
|
this.client.games.delete(msg.channel.id);
|
||||||
const winner = pts.sort((a, b) => b.points - a.points).first().user;
|
const winner = pts.sort((a, b) => b.points - a.points).first().user;
|
||||||
return msg.say(`Congrats, ${winner.user}!`);
|
return msg.say(`Congrats, ${winner}!`);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this.client.games.delete(msg.channel.id);
|
this.client.games.delete(msg.channel.id);
|
||||||
throw err;
|
throw err;
|
||||||
|
|||||||
Reference in New Issue
Block a user