Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Betting (Bookmaker) Discord Bot. Set your own events and odds. Lock in offer and announce event winner.

License

Notifications You must be signed in to change notification settings

jakjus/ocean-bet

Repository files navigation

Ocean Bet - Betting Discord Bot

License: MIT

Betting (Bookmaker) Discord Bot. Set your own events and odds. Lock in offer and announce event winner.

🚀 Discord

Prerequisites

  • NPM
  • NodeJS

Install

git clone [email protected]:jakjus/ocean-bet.git
cd ocean-bet/
npm install

Setup

Discord App

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!)

Edit config files

Rename .env.example with .env. Fill it with your own application's TOKEN and Client ID. TOPGG_AUTH is optional.

Register slash commands

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

Run bot

npm start

How to use

  • /newoffer (ADMIN) Create offer.
  • /bet Bet on an offer.
  • /lock (ADMIN) Lock the offer when event starts.
  • /announce (ADMIN) Announce event winner.

Author

👤 Jakub Juszko

🤝 Contributing

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.

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2024 Jakub Juszko.
This project is MIT licensed.


About

Betting (Bookmaker) Discord Bot. Set your own events and odds. Lock in offer and announce event winner.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published