-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
42 lines (31 loc) · 841 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
/**
* @todo Add help
* @todo Add other assignments
* @todo Add updates
*/
process.on('warning', e => console.warn(e.stack));
const Discord = require("discord.js");
const client = new Discord.Client({
ws: {
intents: [
"GUILDS",
"GUILD_MESSAGES",
"GUILD_MEMBERS",
"GUILD_EMOJIS",
"GUILD_MESSAGE_REACTIONS",
"DIRECT_MESSAGES",
"GUILD_VOICE_STATES",
]
}
}
);
const { sheets, db, config, MW } = require("./build/Authorize")
const { ProcessorBot } = require("./build/ProcessorBot");
(async () => {
let processorbot = new ProcessorBot(sheets, db, client, MW);
await client.login(config);
client.on("ready", async () => {
await processorbot.onConstruct();
console.log("Up now!");
})
})();