This package allows your bot to have a giveaways function easily.
Usage
constDiscord=require("discord.js")constclient=newDiscord.Client()constGiveaway=require("discord.js-giveaway")constgiveaway=Giveaway(client,{})//Giveaway has 2 variables: client and optionsclient.login(token)
Giveaway's options object
name
optional
description
default value
type
prefix
yes
This is the prefix your bot will react to.
"!"
string
startCmd
yes
This command starts a giveaway.
"giveawaystart"
string
giveawayRole
yes
ID of a role, that is permitted to start giveaways. * default: @everyone