-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
24 lines (18 loc) · 680 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
require("dotenv").config();
const JUGNU = require("./handlers/Client");
const { TOKEN } = require("./settings/config");
const client = new JUGNU();
module.exports = client;
client.start(TOKEN);
process.on("unhandledRejection", (reason, p) => {
console.log(" [Error_Handling] :: Unhandled Rejection/Catch");
console.log(reason, p);
});
process.on("uncaughtException", (err, origin) => {
console.log(" [Error_Handling] :: Uncaught Exception/Catch");
console.log(err, origin);
});
process.on("uncaughtExceptionMonitor", (err, origin) => {
console.log(" [Error_Handling] :: Uncaught Exception/Catch (MONITOR)");
console.log(err, origin);
});