1.3.2 • Published 2 years ago
@djs-modules/giveaways v1.3.2
Welcome
Welcome! This is "@djs-modules/giveaways" module! "@djs-modules/giveaways" is a module that allows you to create a giveaway system in your Discord bot.
Installation
Please note: NodeJS v16.6 or above required for this module!
$ npm i @djs-modules/giveaways
Features
🙂 Easy to use. 👍 Beginner friendly. 🔑 TypeScript Support. ⚙️ 100% Promise-based. ⏱ Events (giveawayEnd, giveawayRerolled, notEnoughUsers). 🔁 Auto-Restart after reboot. 📝 Multi-Language Support.
Initialization
const { Client } = require("discord.js");
const { Manager } = require("@djs-modules/giveaways");
const client = new Client({
intents: [
"GUILDS",
"GUILD_MESSAGES",
"GUILD_MEMBERS",
"GUILD_MESSAGE_REACTIONS",
],
});
const manager = new Manager(client, {
dbPath: "./",
defaultOptions: {
winnersCount: 1,
mentionEveryone: true,
botsCanWin: false,
startColor: "RANDOM",
endColor: "GREEN",
errorColor: "RED",
reaction: "🎉",
},
});
Links
Authors: djs-modules Discord Tags: WhyMe#1126 NodeJS: Click TypeScript: Click Support Server: Click Website: Click