Bot for collecting and summing up bets on games played during LAN party. For now there are few basic commands:
create-team
- add team with name a and logocreate-game
- add game with teams and 'bet stake'delete-team
- remove the teamopen-game
- create discord embed with buttons used for betting and closing betsset-winner
- command used to tell the bot who won the gamesummary
- command displays results of bettng on a specified game
Write primitive prototypeRestructure project, use the discord.js guidelines- Refactor commands and components to utilize autocompletion for better UX, make components more reusable
- Integrate knex to the project migrate to PostgreSQL using knex migrations, refactor repositories to use knex clean sql builder syntax instead of shi**ty string manipulation
- Add command
delete-game
- Add support for displaying members of the team
- Make bet courses dynamic
For project uses:
- discord.js for accessing discord api
- sqlite3 for Database
- bun for compiling TS, js runtime and package manager
Requires bun to be installed
In the project root run
bun install
For now can be run in 'development mode'
provide 3 environmental variables:
BOT_TOKEN=<YOU SECRET BOT TOKEN>
CLIENT_ID=<YOUR BOT CLIENT ID>
GUILD_ID=<ID OF YOUR DISCORD SERVER USED FOR TESTING>
Deploy commands to the discord server
bun run dev:deploy
then you start the bot
bun start