-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
47 lines (44 loc) · 1.29 KB
/
index.js
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
43
44
45
46
47
const Discord = require('discord.js');
require('dotenv').config();
const client = new Discord.Client({
intents: 32767,
allowedMentions: {
repliedUser: false,
}
});
const { readdirSync } = require('fs');
client.commands = new Discord.Collection();
client.slash = new Discord.Collection();
client.categories = readdirSync("./commands/");
client.events = new Discord.Collection();
module.exports = client; // ^__^
/**
* @comment Requiring Handlers
*/
/*************************************/
require('./handler/command')(client);
require('./handler/event')(client);
require('./handler/erela')(client);
require('./handler/antiCrash')(client);
client.on("error", (e) => {
console.error(e);
});
/*************************************/
/**
* @comment I don't know what it does lmao
*/
/*************************************/
client.on("raw", (d) => client.manager.updateVoiceState(d));
/*************************************/
/*************************************/
/**
* @comment Logging into bot
* @comment everyone knows that xD
*/
client.login(process.env.token);
/**
* @info Give credits if your using this music
* @info programmed by !" ╰‿╯ ᴰʸⁿᵒΔRΨΔΠ†ᶜᵒᵐᵉᵇᵃᶜᵏ#6969
* @info #roadto100subs
* @info Github: https://github.com/Aryan700coder/Honey-Music
*/