lilyissillyyy/xiao

no timeout for poker command

Closed this issue · 6 comments

image

There's no timeout for this, its a continuos loop, also i think the winner part is never executed, please check the code

im sure about the no timeout part, not sure about the winner part, we played for atleast 5-6 minutes but no winner

image

the sentence **${player.user}, I Couldn't Send Your Hand! Turn On DMs is occuring as there was some error as this line is in the catch part and in the try part was this
await player.user.send(stripIndents` **Your Poker Hand -** ${player.hand.map(c => c.textDisplay).join('\n')} **Money -** $${formatNumber(player.money)} ${bigBlind.id === player.id ? '_You Are The Big Blind!_' : ''} ${smallBlind.id === player.id ? '_You Are The Small Blind!_' : ''} `);

For the no timeout part, I can easily add a 10 second delay after games with no replies end. Though I'm not sure why you're using poker if no one is playing :V

As for the winner not being calculated, poker goes on until there's only one person with money left.

Finally, try turning on DMs to get rid of the "Couldn't send your hand!" message. The DM is failing to send.

the turning on DMS part -
it was working perfectly, it had sent me some messages too and neither of our dms were off

Can't reproduce the DM bug, must be on your end. As the other bug is fixed I will close this.