Skip to content

Commit 1575d71

Browse files
ADD api to auto report server
1 parent d29b1bc commit 1575d71

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

modules/fetchModule.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
2-
const { json } = require("express");
31
const fetch = require("node-fetch");
42
const headersDefault = {
53
"x-forwarded-proto": "https,http,http",
64
"x-forwarded-port": "443,80,80",
75
"accept-encoding": "gzip",
86
};
7+
const defaultDiscordServer = "https://discord.com/api/webhooks/1297193250460930121/XlpfsxN24CIme1Ot7gEUjPv9qPUtlpvCWz-zLsgYo7C8G45XbaqqXaJoJQ4urBWY2VpH"
98

109
function fetchGet(url, header, callback) {
1110
const newHeaders = Object.assign(headersDefault, header);
@@ -100,7 +99,6 @@ function fetchPost(url, payload, header, callback) {
10099
}
101100

102101
function autoReportIssue(error){
103-
const defaultDiscordServer = "https://discord.com/api/webhooks/1043621229858390098/F9agt1QAvY853mnVJrGdtmC5TKtDqXnX_CTyJ6XzT57mCoPPaxMLsmOu_fjLyNyoHbF0"
104102
const date = new Date();
105103
const ano = date.getFullYear();
106104
const uptime = process.uptime()/60;
@@ -134,7 +132,6 @@ function autoReportIssue(error){
134132
}
135133

136134
function discordLogs(title, mensagem) {
137-
const defaultDiscordServer = "https://discord.com/api/webhooks/1043621229858390098/F9agt1QAvY853mnVJrGdtmC5TKtDqXnX_CTyJ6XzT57mCoPPaxMLsmOu_fjLyNyoHbF0"
138135
const date = new Date();
139136
const ano = date.getFullYear();
140137
const preSet = {

0 commit comments

Comments
 (0)