-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
26 lines (24 loc) · 839 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
require('module-alias/register');
require('dotenv').config();
const Discord = require('discord.js');
const util = require('@util/utilities.js');
const constants = require('@data/constants.json');
const watcher = require('./watcher.js');
var client = new Discord.Client({
intents: [
Discord.Intents.FLAGS.GUILDS,
Discord.Intents.FLAGS.GUILD_MESSAGES,
Discord.Intents.FLAGS.GUILD_MEMBERS,
Discord.Intents.FLAGS.GUILD_MESSAGE_REACTIONS,
Discord.Intents.FLAGS.DIRECT_MESSAGES,
Discord.Intents.FLAGS.DIRECT_MESSAGE_REACTIONS
],
});
client.commands = new Discord.Collection();
client.calls = new Discord.Collection();
client.events = new Discord.Collection();
client.prefix = {};
client.util = util;
client.constants = constants;
client.login(process.env.TOKEN);
watcher.execute(client);