A Discord bot for running giveaways, written in Go with MongoDB for storage.
- Create, end, reroll, delete, and list giveaways.
- Customizable embed messages with variables like
{user},{prize},{duration},{channel},{winners}, and{nl}. - Automatic giveaway watcher to end giveaways when they expire.
- Go 1.20+
- MongoDB
- Discord bot token
-
Clone the repository:
git clone https://github.com/brutiv/buoy.git cd buoy/src -
Create a
.envfile:DISCORD_TOKEN=your_bot_token MONGO_URI=mongodb://username:password@host:port REDIS_ADDR=rediss://default:password@host:port
-
Install dependencies:
go mod tidy
-
Run the bot:
go run main.go
Use /giveaway commands to manage giveaways in your server.