Spaces:
Running
Running
Update index.js
Browse files
index.js
CHANGED
|
@@ -86,7 +86,7 @@ setInterval(async () => {
|
|
| 86 |
}
|
| 87 |
}, 60_000);
|
| 88 |
|
| 89 |
-
// π Ping docs every 5 seconds
|
| 90 |
setInterval(async () => {
|
| 91 |
try {
|
| 92 |
await axios.get("https://markdevs69v2.onrender.com/docs");
|
|
@@ -96,6 +96,16 @@ setInterval(async () => {
|
|
| 96 |
}
|
| 97 |
}, 5000);
|
| 98 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 99 |
// π Fetch from ARIA API every 1 hour
|
| 100 |
setInterval(async () => {
|
| 101 |
console.log("[Scheduled] Fetching from ARIA API...");
|
|
|
|
| 86 |
}
|
| 87 |
}, 60_000);
|
| 88 |
|
| 89 |
+
// π Ping docs every 5 seconds (original)
|
| 90 |
setInterval(async () => {
|
| 91 |
try {
|
| 92 |
await axios.get("https://markdevs69v2.onrender.com/docs");
|
|
|
|
| 96 |
}
|
| 97 |
}, 5000);
|
| 98 |
|
| 99 |
+
// π NEW β Pinging https://ccprojectsapis.zetsu.xyz/docs.html every 5s
|
| 100 |
+
setInterval(async () => {
|
| 101 |
+
try {
|
| 102 |
+
await axios.get("https://ccprojectsapis.zetsu.xyz/docs.html");
|
| 103 |
+
console.log(`[CCPROJECTS] Pinged successfully at ${new Date().toLocaleTimeString()}`);
|
| 104 |
+
} catch (e) {
|
| 105 |
+
console.error("[CCPROJECTS] Fetch failed:", e.message);
|
| 106 |
+
}
|
| 107 |
+
}, 5000);
|
| 108 |
+
|
| 109 |
// π Fetch from ARIA API every 1 hour
|
| 110 |
setInterval(async () => {
|
| 111 |
console.log("[Scheduled] Fetching from ARIA API...");
|