snapshot_poker_phase5
This commit is contained in:
@@ -9,6 +9,10 @@ const {
|
||||
refreshPokerTableMessage
|
||||
} = require("./pokerDiscord");
|
||||
|
||||
const {
|
||||
announcePokerHandProgress
|
||||
} = require("./pokerProfile");
|
||||
|
||||
|
||||
async function executePokerAction(
|
||||
interaction,
|
||||
@@ -50,6 +54,19 @@ async function executePokerAction(
|
||||
game
|
||||
);
|
||||
|
||||
try {
|
||||
await announcePokerHandProgress(
|
||||
interaction,
|
||||
game
|
||||
);
|
||||
}
|
||||
catch (error) {
|
||||
console.error(
|
||||
`[PokerProfile] Failed to announce completed hand ${game.gameId}:`,
|
||||
error
|
||||
);
|
||||
}
|
||||
|
||||
return interaction.editReply({
|
||||
content:
|
||||
typeof successText ===
|
||||
@@ -145,6 +162,19 @@ async function executeMinimumRaise(
|
||||
game
|
||||
);
|
||||
|
||||
try {
|
||||
await announcePokerHandProgress(
|
||||
interaction,
|
||||
game
|
||||
);
|
||||
}
|
||||
catch (error) {
|
||||
console.error(
|
||||
`[PokerProfile] Failed to announce completed hand ${game.gameId}:`,
|
||||
error
|
||||
);
|
||||
}
|
||||
|
||||
return interaction.editReply({
|
||||
content:
|
||||
`✅ ${type === "bet" ? "Bet" : "Raised to"} ${legal.minRaiseTo.toLocaleString()} 🍪`,
|
||||
|
||||
Reference in New Issue
Block a user