Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jakjus/ocean-bet
Betting (Bookmaker) Discord Bot. Set your own events and odds. Lock in offer and announce event winner.
https://github.com/jakjus/ocean-bet
bet betting bookmaker discord discord-bot discord-js discord-js-bot
Last synced: 10 days ago
JSON representation
Betting (Bookmaker) Discord Bot. Set your own events and odds. Lock in offer and announce event winner.
- Host: GitHub
- URL: https://github.com/jakjus/ocean-bet
- Owner: jakjus
- License: mit
- Created: 2022-12-02T09:02:36.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-12-23T09:03:36.000Z (about 1 month ago)
- Last Synced: 2024-12-23T10:19:18.706Z (about 1 month ago)
- Topics: bet, betting, bookmaker, discord, discord-bot, discord-js, discord-js-bot
- Language: CSS
- Homepage:
- Size: 366 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Ocean Bet - Betting Discord Bot
> Betting (Bookmaker) Discord Bot. Set your own events and odds. Lock in offer and announce event winner.
### 🚀 [Discord](https://discord.gg/NYUhKBz6ZB)
## Prerequisites
- NPM
- NodeJS## Install
```sh
git clone [email protected]:jakjus/ocean-bet.git
cd ocean-bet/
npm install
```## Setup
### Discord App
Register app in [Discord Develepers Portal](https://discord.com/developers/applications). 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](https://discord.com/developers/applications) --> Your App --> Installation --> Install Link --> Paste the URL --> Save. You will use this URL to Invite your bot.
Go to [Discord Develepers Portal](https://discord.com/developers/applications) --> 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
```sh
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:```sh
GUILD_ID=your_guild_id node register.js
```### Run bot
```sh
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**
- Website: https://jakjus.com
- Github: [@jakjus](https://github.com/jakjus)
- LinkedIn: [@jakubjuszko](https://linkedin.com/in/jakubjuszko)## 🤝 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](https://github.com/jakjus/ocean-bet/issues).## Show your support
Give a ⭐️ if this project helped you!
## 📝 License
Copyright © 2024 [Jakub Juszko](https://github.com/jakjus).
This project is [MIT](https://github.com/jakjus/ocean-bet/blob/master/LICENSE) licensed.---