19 lines
585 B
JavaScript
19 lines
585 B
JavaScript
// =============================================
|
|
// = CONSTANTS =
|
|
// =============================================
|
|
const Discord = require("discord.js");
|
|
const client = new Discord.Client({intents: 32767});
|
|
const handler = require("./handler/index");
|
|
require("dotenv").config();
|
|
|
|
client.login(process.env.TOKEN);
|
|
module.exports = client;
|
|
client.discord = Discord;
|
|
client.slash = new Discord.Collection();
|
|
|
|
handler.loadEvents(client);
|
|
handler.loadSlashCommands(client);
|
|
|
|
process.on("uncaughtException", function (err) {
|
|
console.log("CRASH", err);
|
|
}); |