Create your giveaways with this bot.
- Clone github project.
- Install dependencies with
npm run install
- Start with
npm run start
First of all, you have to make your own settings in order to use the bot. (Like entering Mongodb and Discord tokens)
- Follow the path
./src/config.js
- Enter our Discord token and Mongodb Atlas url. (You can also use Local Mongodb)
Commands work with Discord's slash (/) command system.
Usage: /giveaway channel time winner-count prize
Example: /giveaway #awardchannel 10d 2 Discord Nitro
Time Concepts
- 1s = 1 second
- 1m = 1 minute
- 1d = 1 day
- 1y = 1 year
Usage: /end giveaway-id
Example: /end 6327984492
Usage: /reroll giveaway-id
Example: /reroll 6327984492
You can change the messages in the giveaway messages. For this, you can change the options.messages
data in the ./src/commands/giveaway.js
file.
Example:
messages: {
giveaway: "🎉🎉 **GIVEAWAY** 🎉🎉",
giveawayEnded: "🎉🎉 **GIVEAWAY ENDED** 🎉🎉",
timeRemaining: "Time remaining: **{duration}**!",
inviteToParticipate: "Click to Enter button for participate!",
participants: "Entries: {participants}",
winMessage: "Congratulations, {winners}! You won **{prize}**!",
embedFooter: "Giveaways",
noWinner: "Giveaway cancelled, no valid participations.",
hostedBy: "Hosted by: {user}",
winners: "winner(s): {winners}",
endedAt: "Ended at",
}
You can edit the replaceMessage
function in the ./src/giveaway/index.js
file to add more variables to the giveaway messages.