https://github.com/inspirateur/discord-bets
Discord betting bot
https://github.com/inspirateur/discord-bets
betting discord discord-bot
Last synced: about 2 months ago
JSON representation
Discord betting bot
- Host: GitHub
- URL: https://github.com/inspirateur/discord-bets
- Owner: Inspirateur
- License: mit
- Created: 2021-11-16T14:09:09.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-11-18T17:44:24.000Z (12 months ago)
- Last Synced: 2024-11-18T18:49:15.201Z (12 months ago)
- Topics: betting, discord, discord-bot
- Language: Rust
- Homepage:
- Size: 319 KB
- Stars: 4
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Discord Bets
A discord bot that implements bets similar to *Twitch Bets*.
## Features
Users need to first make an account with `/account`
A bet is created with `/bet desc [outcomes, ]` and accepts 2 outcomes or more, separated with spaces
(quotes allows you to use spaces inside an option)

The bet will then be displayed like so, with informations on odds, amounts and users on each side, similar to *Twitch Bets*
Users can bet on one outcome with the 10%, 50% and All in buttons (clicking multiple time on the same option is possible)

The creator of the bet can Abort it any time, or Lock it to close bidding while the action happens,
which will remove the betting option and display win buttons to select the winning outcome

When the bet has been settled, the creator of the bet can then select the winning option to distributes the gain among the winners

There's also a /leaderboard command :)
## How to run it
- Either grab a build from the releases or build it yourself, and put the executable in a folder
- go to https://discordapp.com/developers/applications/ create your app
- add a User Bot to it, its token must be stored in an environnement variable named "GOTOH_TOKEN" or in a token.txt file at the root of the project
- enable `SERVER MEMBERS INTENT` and `PRESENCE INTENT` in the bot tab
- invite the bot with `https://discord.com/api/oauth2/authorize?client_id=CLIENT_ID&permissions=0&scope=bot` replace `CLIENT_ID` with the Client ID of your app
- run the executable