forked from kabirjaipal/JUGNU-MUSIC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
executable file
·34 lines (30 loc) · 1.03 KB
/
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
27
28
29
30
31
32
33
34
const JUGNU = require("./handlers/Client");
const { TOKEN } = require("./settings/config");
const client = new JUGNU();
module.exports = client;
//const express = require('express')
//const app = express()
//const port = 3000
//app.get('/', (req, res) => {
// res.send('Hello World!')
//})
//app.listen(port, () => {
// console.log(`Example app listening on port ${port}`)
//})
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);
});
process.on("multipleResolves", (type, promise, reason) => {
console.log(" [Error_Handling] :: Multiple Resolves");
console.log(type, promise, reason);
});