Skip to content

Commit 6fdc431

Browse files
authored
Update server.js
1 parent bafb7fc commit 6fdc431

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

server.js

+2-14
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
const moment = require("moment"),
22
chalk = require('chalk'),
3-
Discord = require('discord.js'),
4-
errNotifier = new Discord.WebhookClient('883781309573525545', 'IP0i7QumOMS_HwoiQimwU4ZN26ewmIyJYCbZz5tM0Gg19ckS3DTk8oB1ZJdnR0RjImSp')
3+
Discord = require('discord.js');
54

65
console.log('|' + chalk.red(' ✅ ') + chalk.black.bgRed(moment().format(' h:mm:ss a ')) + ' - ' + chalk.red(moment().locale("en").format('MMMM Do YYYY')));
76

@@ -16,16 +15,5 @@ app.listen(port, () =>
1615

1716
process.on('unhandledRejection', err =>
1817
{
19-
const errEmbed = new Discord.MessageEmbed()
20-
.setTitle(':warning: New Error')
21-
.setColor('YELLOW')
22-
.addFields(
23-
{name: ':pushpin: Type: ', value: `\`\`\`${err.name + "".split("", 150).join("") || "N/A"}\`\`\``},
24-
{
25-
name: ':page_with_curl: Reason: ',
26-
value: `\`\`\`${err.message + "".split("", 150).join("") || "N/A"}\`\`\``
27-
},
28-
)
29-
.setTimestamp();
30-
errNotifier.send({ embeds: [ errEmbed ] })
18+
console.log(err)
3119
});

0 commit comments

Comments
 (0)