Spaces:
Sleeping
Sleeping
T1ckbase
commited on
Commit
·
d1012ae
1
Parent(s):
4142e2d
start
Browse files
main.ts
CHANGED
@@ -59,13 +59,13 @@ async function main() {
|
|
59 |
}
|
60 |
}
|
61 |
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
|
|
59 |
}
|
60 |
}
|
61 |
|
62 |
+
while (true) {
|
63 |
+
const SPACE_HOST = Deno.env.get('SPACE_HOST');
|
64 |
+
SPACE_HOST && await fetch(`https://${SPACE_HOST}`);
|
65 |
+
try {
|
66 |
+
await main();
|
67 |
+
} catch (e) {
|
68 |
+
console.error(e);
|
69 |
+
await delay(10000);
|
70 |
+
}
|
71 |
+
}
|