mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-03 23:36:35 +02:00
trop de truc pour tout ecrire
This commit is contained in:
@@ -3,10 +3,20 @@ const { Client, IntentsBitField, Collection } = require("discord.js");
|
||||
const loadCommands = require("./loaders/loadCommands");
|
||||
const loadEvents = require("./loaders/loadEvents");
|
||||
const client = new Client({intents: new IntentsBitField(3276799)});
|
||||
const { GiveawaysManager } = require('discord-giveaways');
|
||||
|
||||
client.events = new Collection();
|
||||
client.commands = new Collection();
|
||||
|
||||
client.giveawaysManager = new GiveawaysManager(client, {
|
||||
storage: './giveaways.json',
|
||||
updateCountdownEvery: 5000,
|
||||
default: {
|
||||
botsCanWin: false,
|
||||
exemptPermissions: [],
|
||||
embedColor: '#FF0000',
|
||||
reaction: '🎉'
|
||||
}
|
||||
});
|
||||
(async () => {
|
||||
loadCommands(client);
|
||||
loadEvents(client);
|
||||
|
||||
Reference in New Issue
Block a user