-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.js
More file actions
28 lines (24 loc) · 914 Bytes
/
Copy pathmain.js
File metadata and controls
28 lines (24 loc) · 914 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
const { Client, Collection } = require('discord.js');
const { loadCommands, loadEvents } = require("./util/loader");
const client = new Client({ partials: ['MESSAGE', 'CHANNEL', 'REACTION'] });
require("./util/functions")(client);
client.config = require("./config");
client.mongoose = require("./util/mongoose");
client.radioURL = require('./radioURL');
client.queue = new Map();
["commands", "cooldowns", "musicPlayer"].forEach(x => client[x] = new Collection());
// Init discord giveaways
const { GiveawaysManager } = require('discord-giveaways');
client.giveawaysManager = new GiveawaysManager(client, {
storage: "./giveaways.json",
updateCountdownEvery: 10000,
default: {
botsCanWin: false,
embedColor: "#FF0000",
reaction: "🎉"
}
});
loadCommands(client);
loadEvents(client);
client.mongoose.init();
client.login(client.config.TOKEN);