-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.js
41 lines (28 loc) · 966 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
31
32
33
34
35
36
37
38
39
40
41
const Discord = require("discord.js");
// Create Discord client instance .
const client = new Discord.Client();
// Load the logger.
client.logger = require("./modules/logger");
client.logger.ready('Logger Initialized');
// Load the auth settings.
client.auth = require("./auth");
// Load the config settings.
client.config = require("./config");
// Load the Utils module.
require("./modules/utils")(client);
// Load and bind the events.
client.loadEventModules();
// Load the commands into memory.
client.loadCommandModules();
// Load a cache of user-friendly permission names.
client.loadPermissions();
// Load the member quotes, jokes, and others into memory.
client.loadExternalData();
// Initialize the various data objects.
client.stubData();
// Load into memory various Torn City data.
client.loadTornData();
// Restart member custom cron jobs.
client.restartCronJobs();
// Log the bot into the Discord client.
client.login(client.auth.botToken);