forked from Tazhys/ps3apibot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
30 lines (26 loc) · 860 Bytes
/
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
const { Client, GatewayIntentBits, Collection } = require("discord.js");
const client = new Client({
intents: [
GatewayIntentBits.MessageContent,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.Guilds,
]
});
client.config = require("./src/data/config.js");
client.utils = {
CCAPINotify: require("./src/functions/CCAPI"),
console: require("./src/utils/console.json"),
successEmbed: require("./src/functions/successEmbed"),
errorEmbed: require("./src/functions/errorEmbed"),
logger: require("./src/utils/logger.js"),
};
client.commands = new Collection();
client.pkg = {
fetch: require("node-fetch"),
}
setTimeout(() => {
require("./src/handlers/commands")(client);
require("./src/handlers/events")(client);
}, 1000);
client.login(client.config.token)