Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cho Han #22

Open
8 of 13 tasks
andersthemagi opened this issue Nov 3, 2021 · 1 comment
Open
8 of 13 tasks

Cho Han #22

andersthemagi opened this issue Nov 3, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request money/shop Issue regarding either currency or the shop modules.

Comments

@andersthemagi
Copy link
Owner

andersthemagi commented Nov 3, 2021

Feature Description

https://gamerules.com/what-are-the-rules-of-cho-han/

Desired Solutions

  • A user can start a game of Cho-Han in a channel using !chohan
  • A user can bet for evens / odds using a reaction and privately (via DM) bet an amount to the Bot
    • A user should be able to edit or retract a bet at any point during the process
  • There can only be one cho-han game per channel.
  • There will be 3 minutes on a timer for the cho-han game Users can do between 2 - 10 minute games.
  • The Traveler will set up an embed that updates with:
    • Time remaining
    • Currency Total in Pot
    • Even Bets (w/ Mentions)
    • Odd Bets (w/ Mentions)
  • After set amount of minutes, end the game and:
    • Notify users that won and update their XP currency accordingly.
    • Subtract XP currency from users that lost the game.

Additional context

https://stackoverflow.com/questions/61883534/how-to-get-the-message-content-embed-from-the-message-id
https://stackoverflow.com/questions/58969381/how-to-edit-embed-messages-discord-py

Considering also using Rich Embeds for actual buttons under the embed, however I am unsure whether or not they exist in Discord.py.

@andersthemagi andersthemagi added the enhancement New feature or request label Nov 3, 2021
@andersthemagi andersthemagi self-assigned this Nov 3, 2021
@andersthemagi andersthemagi added the money/shop Issue regarding either currency or the shop modules. label Nov 4, 2021
@andersthemagi
Copy link
Owner Author

Updates:

  • Buttons on a Rich Embed are possible using the Discord Components package. Managed to get a skeleton working of how the Chohan game is going to look
  • Update cycles are working as intended. There may be the opportunity to allow the bot to asyncio.sleep(1) instead of checking the time difference so often, however that is IFF the bot can accept input during a sleep. I imagine that's the whole point of Async Tasks, but you never know what kind of limitations a single core machine can have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request money/shop Issue regarding either currency or the shop modules.
Projects
None yet
Development

No branches or pull requests

1 participant