mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-03 23:36:35 +02:00
23 lines
756 B
JavaScript
23 lines
756 B
JavaScript
require('dotenv').config();
|
|
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);
|
|
await client.login(process.env.TOKEN);
|
|
})(); |