Betting (Bookmaker) Discord Bot. Set your own events and odds. Lock in offer and announce event winner.
🚀 Discord
- NPM
- NodeJS
git clone [email protected]:jakjus/ocean-bet.git
cd ocean-bet/
npm install
Register app in Discord Develepers Portal. Required privileges integer is: 2147485696
. Insert your client_id in URL below.
https://discord.com/api/oauth2/authorize?client_id=YOUR_CLIENT_ID&permissions=2147485696&scope=bot%20applications.commands
Go to Discord Develepers Portal --> Your App --> Installation --> Install Link --> Paste the URL --> Save. You will use this URL to Invite your bot.
Go to Discord Develepers Portal --> Your App --> Bot --> copy TOKEN. You will use this TOKEN in .env
. (Bot TOKEN is different than OAuth TOKEN!)
Rename .env.example
with .env
. Fill it with your own application's TOKEN and Client ID. TOPGG_AUTH
is optional.
node register.js
It can take up to 10 minutes to propagate on all bots existing instances.
If you wish to register commands for testing on one Discord Server (Guild), use:
GUILD_ID=your_guild_id node register.js
npm start
/newoffer
(ADMIN) Create offer./bet
Bet on an offer./lock
(ADMIN) Lock the offer when event starts./announce
(ADMIN) Announce event winner.
👤 Jakub Juszko
- Website: https://jakjus.com
- Github: @jakjus
- LinkedIn: @jakubjuszko
This package is not published on NPM, because the script is self-contained and I do not expect anyone to plug it into a bigger script.
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐️ if this project helped you!
Copyright © 2024 Jakub Juszko.
This project is MIT licensed.