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

New command: /roulette (economy) #51

Closed
vb2007 opened this issue Aug 5, 2024 · 1 comment
Closed

New command: /roulette (economy) #51

vb2007 opened this issue Aug 5, 2024 · 1 comment
Assignees
Labels
new command New /slash command request

Comments

@vb2007
Copy link
Owner

vb2007 commented Aug 5, 2024

A simple command, that lets a user play a game of roulette.

It will have 2 required parameters:

  • amount : an integer option, that the user can use to specify the amount that will get used for the game
  • color : a string option with 3 predefined parameters: Red, Black, Green

Just like in any traditional roulette game, a ball spins, then lands on a random number and color.

The bot send back the color and number that it randomly generated, alongside with informing the user about their win / loss.

If a user wins with red or black, the bot will send them double of their bet.

If a user wins with green, the bot will send them 35x of their bet.

If a user loses, the bot takes the amount they've played with.

Of course, it needs some error handling and input validation as well.

It should be used in 15 minute periods. So the economy table will need a lastRouletteTime column.

@vb2007
Copy link
Owner Author

vb2007 commented Aug 6, 2024

Done

Related Pull Request:

Related commits (not in order):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new command New /slash command request
Development

No branches or pull requests

1 participant