-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
24 lines (19 loc) · 779 Bytes
/
index.js
File metadata and controls
24 lines (19 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
const Client = require("./base/Client");
const config = require("./config");
// Extenders
require("./extenders/Message");
require("./extenders/MessageEmbed");
require("./extenders/TextChannel");
require("./extenders/User");
// require("./extenders/GuildMember");
// Initialize client, attach config to config.json, set command directory to /commands, and set events directory to /events
// fetchAllMembers: true, disableEveryone: true, disabledEvents: ["USER_UPDATE", "TYPING_START"]
const client = new Client({
...config.clientOptions,
config,
guild: config.guild,
sql: config.credentials.sql
});
client.loadCommands(config.dirs.commands).loadEvents(config.dirs.events);
// Start client with token found in config
client.start(config.credentials.token);