Skip to content

Inspirateur/Discord-Bets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)
bet command

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)
bet display

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
locked bet

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

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