1.1.4 • Published 3 years ago

djs-giveaway v1.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Djs Giveaway

discordBadge npm npm

Features

⏱️ Easy to use!\ ⚙️ Full configuration\ 📁 Support for all databases! (default is json)\ 🔄 Automatic restart after bot crash!

Examples

Code Examples

⏱️ Calling the module

const djsGiveaway = require("djs-giveaway");
const giveaway = new djsGiveaway(client);

Giveaway Options

new djsGiveaway(client, {
    countdownUpdateInterval: 1000,
    reaction: "🎁",
    embed: {
        color: "BLUE"
    }
});

Giveaway Start

giveaway.create({
    guildId: message.guild.id,
    channelId: message.channel.id,
    prize: "Test",
    duration: 10000,
    winnersCount: 1
});

For role-specific raffle

giveaway.create({
    guildId: message.guild.id,
    channelId: message.channel.id,
    prize: "Test",
    duration: 10000,
    winnersCount: 1,
    rolesToParticipate: ["roleId"]
});

Giveaway Edit

giveaway.edit(messageId, {prize: "Test v2", duration: 5000, winnersCount: 5});

Giveaway Delete

giveaway.delete(messageId);

⚙️ We did not say full configuration for nothing

{
  "createEmbed": {
    "title": "Giveaway",
    "description": ":tada: Raffle started prize ",
    "footer": "• {{winnersCount}} Winners"
  },
  "countdownEmbed": {
    "title": "Giveaway",
    "description": ":partying_face: Giveaway finish reaming time {{reaming}}.\n:gift: Prize: **{{prize}}**",
    "footer": "• {{winnersCount}} Winners"
  },
  "finishEmbed": {
    "title": ":tada: The draw is over",
    "description": ":partying_face: Giveaway end.\n:military_medal: Winners {{winners}} won.\n:gift: Prize: **{{prize}}**",
    "footer": ""
  },
  "winner": ":military_medal: Winners {{winners}} won.\n\n:gift: Prize: {{prize}}",
  "noWinner": ":military_medal: Giveaway there was no winner.",
  "controllers": {
    "noRole": "You need {{roles}} roles to participate in the lottery."
  }
}
1.1.1

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.0.10

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.0

3 years ago