-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
25 lines (19 loc) · 808 Bytes
/
Copy pathindex.js
File metadata and controls
25 lines (19 loc) · 808 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
require('console-stamp')(console, 'mm/dd HH:MM:ss.l');
process.setMaxListeners(20);
const { Client, GatewayIntentBits, Partials, Collection } = require("discord.js");
const { Guilds, GuildMembers, GuildMessages } = GatewayIntentBits;
const { User, Message, GuildMember, ThreadMember } = Partials;
const client = new Client({
intents: [Guilds, GuildMembers, GuildMessages],
Partials: [User, Message, GuildMember, ThreadMember]
});
const { loadEvents } = require("./Handlers/eventHandler")
const { loadCommands } = require("./Handlers/commandHandler")
client.commands = new Collection()
client.config = require("./Structures/config.json");
client.login(client.config.token)
.then(() => {
loadEvents(client);
loadCommands(client);
})
.catch((err) => console.error(err))