A discord bot that implements bets similar to Twitch Bets.
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 :)
- 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
andPRESENCE INTENT
in the bot tab - invite the bot with
https://discord.com/api/oauth2/authorize?client_id=CLIENT_ID&permissions=0&scope=bot
replaceCLIENT_ID
with the Client ID of your app
- run the executable