-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.js
More file actions
42 lines (37 loc) · 1.02 KB
/
Copy pathindex.js
File metadata and controls
42 lines (37 loc) · 1.02 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// const Sharder = require("./core/sharder");
const { Partials } = require("discord.js");
const Lyra = require("./core/lyra");
// const manager = new Sharder();
// manager.spawn();
const LyraBot = new Lyra({
intents: [
"GuildMessages",
"GuildMembers",
"GuildInvites",
"GuildVoiceStates",
"MessageContent",
"Guilds"
],
partials: [Partials.Channel, Partials.GuildMember, Partials.Message, Partials.User, Partials.ThreadMember],
allowedMentions: {
repliedUser: false
},
failIfNotExists: true,
rest: {
authPrefix: "Bot",
cdn: "https://cdn.discordapp.com/",
globalRequestsPerSecond: 45,
api: "https://discord.com/api/",
retries: 2,
version: "10",
hashSweepInterval: 2 * 60 * 60 * 1000,
timeout: 20000
}
});
LyraBot.start();
process.on("unhandledRejection", (e) => {
console.log(e);
});
process.on("uncaughtException", (e) => {
console.log(e);
});