-
Notifications
You must be signed in to change notification settings - Fork 2
/
bot.js
22 lines (20 loc) · 644 Bytes
/
bot.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
Copyright 2021 Aman Verma. All rights reserved.
Use of this source code is governed by a MIT license that can be
found in the LICENSE file.
*/
require("dotenv").config();
const discord = require("discord.js");
const client = new discord.Client({
partials: ["MESSAGE", "REACTION"],
intents: 32767
});
const { registerCommands, registerEvents } = require("./utils/registry");
const init = async () => {
client.login(process.env.BOT_TOKEN);
client.commands = new Map();
client.cachedMessageReactions = new Map();
await registerEvents(client, "../events");
await registerCommands(client, "../commands");
};
init();