discord-giveaway-sys

1.0.6 • Public • Published

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);

Readme

Keywords

none

Package Sidebar

Install

npm i discord-giveaway-sys

Weekly Downloads

5

Version

1.0.6

License

ISC

Unpacked Size

111 kB

Total Files

8

Last publish

Collaborators

  • titsou