mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-13 08:19:08 +02:00
More fixes
This commit is contained in:
@@ -73,11 +73,11 @@ module.exports = class QuizDuelCommand extends Command {
|
||||
continue;
|
||||
}
|
||||
const result = msgs.first();
|
||||
if (userPoints >= maxPts) winner = msg.author;
|
||||
else if (oppoPoints >= maxPts) winner = opponent;
|
||||
const userWin = result.author.id === msg.author.id;
|
||||
if (userWin) ++userPoints;
|
||||
else ++oppoPoints;
|
||||
if (userPoints >= maxPts) winner = msg.author;
|
||||
else if (oppoPoints >= maxPts) winner = opponent;
|
||||
const score = oneLine`
|
||||
${userWin ? '**' : ''}${userPoints}${userWin ? '**' : ''}-
|
||||
${userWin ? '' : '**'}${oppoPoints}${userWin ? '' : '**'}
|
||||
|
||||
Reference in New Issue
Block a user