-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
37 lines (28 loc) · 839 Bytes
/
index.js
File metadata and controls
37 lines (28 loc) · 839 Bytes
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
console.log("AdvancedReactions started!");
import fs from "fs/promises"
const packageJson = JSON.parse(await fs.readFile("./package.json"))
import dotenv from "dotenv";
dotenv.config();
import { Client, Collection, GatewayIntentBits, Partials } from "discord.js";
let bot = new Client({
partials: [
Partials.User,
Partials.Reaction,
Partials.Message
],
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.GuildMessageReactions,
GatewayIntentBits.DirectMessages
]
});
bot.commands = new Collection();
bot.events = 0;
bot.AR = new Object();
bot.version = packageJson.version;
bot.AR.color = "#89c853";
import setupHandlers from "./src/functions/handlers.js";
setupHandlers(bot);
bot.login(process.env.token);
export { bot };