mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 21:44:48 +02:00
Fix lint
This commit is contained in:
@@ -260,10 +260,12 @@ module.exports = class PokerCommand extends Command {
|
|||||||
let choiceAction;
|
let choiceAction;
|
||||||
if (msgs.size) {
|
if (msgs.size) {
|
||||||
choiceAction = msgs.first().content.toLowerCase().replace(/[$,]/g, '');
|
choiceAction = msgs.first().content.toLowerCase().replace(/[$,]/g, '');
|
||||||
|
} else if (turnPlayer.currentBet !== data.currentBet) {
|
||||||
|
choiceAction = 'fold';
|
||||||
|
} else if (data.currentBet === turnPlayer.currentBet) {
|
||||||
|
choiceAction = 'check';
|
||||||
} else {
|
} else {
|
||||||
if (turnPlayer.currentBet !== data.currentBet) choiceAction = 'fold';
|
choiceAction = 'fold';
|
||||||
else if (data.currentBet === turnPlayer.currentBet) choiceAction = 'check';
|
|
||||||
else choiceAction = 'fold';
|
|
||||||
}
|
}
|
||||||
const raiseValue = raiseRegex.test(choiceAction) ? Number.parseInt(choiceAction.match(raiseRegex)[1], 10) : null;
|
const raiseValue = raiseRegex.test(choiceAction) ? Number.parseInt(choiceAction.match(raiseRegex)[1], 10) : null;
|
||||||
if (raiseValue) {
|
if (raiseValue) {
|
||||||
|
|||||||
Reference in New Issue
Block a user