Example giveaway universal discord bot written in typescript
Rename file ".env.schema" to ".env"
You only need to configure 4 fields for the bot to work properly:
- In the TOKEN field, enter your bot's secret token;
- In the ID field, enter your bot's client ID;
- In the PREFIX field, enter the prefix you want for your bot;
- In the DB_CON_STR field enter the MongoDB database address.
All commands work only on the discord server
giveaway <name> <total winners> - creates a new draw on the server
delete-giveaway <name> - deletes a giveaway
finish-giveaway <name> - completes the giveaway
join-giveaway <name> - giveaway name
ping - replies "pong"