An easy to use open source giveaway bot using discord buttons and Slash commands, and mongoose as database.
Without using any npm libraries like discord-giveaway
, this project was made from scratch
This source code is created by Natalia, and If using this code, please make sure to credit me!
Handler was created by reconlx, make sure to check out their work!
To use this open source, you will need:
- To install nodejs version 16 or higher
- To create a mongodb connection
- Basic mongoose knowledge, if you don't know how to use mongodb I recommend learning before using this source.
- JS knowledge
- DiscordJS knowledge
To install the bot you will need
- To install the dependencies
ms
discord.js
glob
mongoose
You can do that by passing:
npm install
Or
npm install discord.js glob mongoose ms
- Create a mongodb connection
- Change
example.config.json
toconfig.json
, and fill the information
{
"token": "Your bot token here",
"prefix": "Your bot prefix",
"mongooseConnectionString": "your mongodb connection url"
}
- Start the bot
node index.js
replit is not recommended to host the bot, since it needs a database.
You can get free hosting services in our support server by joining our weekly giveaways
Try out the public version of the bot here
- You can join our support server
- You can boost our server, or contribute by donating a Nitro giveaway
- Star This repostory
- Fork this repostory
- anything done to support us is appriciated.