discord-giveaway-sys
v1.0.6
Published
The best Discord Giveaway NPM!
Downloads
31
Readme
Discord Giveaways
Discord Giveaway System is a Node.js module that allows you to create giveaways!
Installation
npm install discord-giveaway-sys
npm i discord-giveaway-sys // "i" is short for "install"
Launch of the module
Required Discord Intents: Guilds
and GuildMessageReactions
.
Optional Discord Privileged Intent for better performance: GuildMembers
.
const Discord = require('discord.js');
const client = new Discord.Client({
intents: [
Discord.IntentsBitField.Flags.Guilds,
Discord.IntentsBitField.Flags.GuildMessageReactions,
Discord.IntentsBitField.Flags.GuildMembers // Optional
]
});
// Your bot's main file.
const { GiveawaysManager } = require('discord-giveaway-sys');
const manager = new GiveawaysManager(client, {
storage: './giveaways.json',
default: {
botsCanWin: false,
embedColor: '#8A2BE2',
embedColorEnd: '#8A2BE2',
reaction: '🎉'
}
});
client.giveawaysManager = manager;
client.on('ready', () => {
console.log('Bot is ready!');
});
client.login(process.env.TOKEN);