1.0.2 • Published 3 years ago

easy-giveaway-discord v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

easy-giveaway-discord

Usage

const Discord = require("discord.js")
const client = new Discord.Client()
const Giveaway = require("easy-giveaway-discord")

const giveaway = Giveaway(client, {})
//Giveaway has 2 variables: client and options

client.login(token)

Giveaway's options object

nameoptionaldescriptiondefault valuetype
prefixyesThis is the prefix your bot will react to."?"string
startCmdyesThis command starts a giveaway."giveaway"string
embedColoryesColor of the giveaway's embed."#7aefe0"string
reactEmoteyesThe emote that you have to react with."🎉"string

Example:

const Discord = require("discord.js")
const client = new Discord.Client()
const Giveaway = require("easy-giveaway-discord")

const giveaway = Giveaway(client, {'prefix': '?', 'startCmd': 'gstart', 'embedColor': 'RED', 'reactEmote': 'emojihere'})
//you can change value inside {} bracket.

client.login(token)

How To Start Giveaway?

You need to have MANAGE_SERVER permission. Then type [prefix]+[startcmd]+[time]+[title]. Example: ?giveaway 10m Test.

1.0.2

3 years ago

1.0.0

3 years ago