Spaces:
Running
Running
T1ckbase
commited on
Commit
·
21ba00e
1
Parent(s):
85001dd
update
Browse files
deno.json
CHANGED
@@ -3,7 +3,6 @@
|
|
3 |
"start": "deno --allow-net --allow-read --allow-env --env-file=.env --unstable-cron --watch main.ts"
|
4 |
},
|
5 |
"imports": {
|
6 |
-
"@std/async": "jsr:@std/async@^1.0.12",
|
7 |
"@std/path": "jsr:@std/path@^1.0.9",
|
8 |
"hono": "jsr:@hono/hono@^4.7.8"
|
9 |
},
|
|
|
3 |
"start": "deno --allow-net --allow-read --allow-env --env-file=.env --unstable-cron --watch main.ts"
|
4 |
},
|
5 |
"imports": {
|
|
|
6 |
"@std/path": "jsr:@std/path@^1.0.9",
|
7 |
"hono": "jsr:@hono/hono@^4.7.8"
|
8 |
},
|
main.ts
CHANGED
@@ -96,6 +96,6 @@ app.get('/game/reset', (c) => {
|
|
96 |
|
97 |
Deno.serve(app.fetch);
|
98 |
|
99 |
-
Deno.cron('keep alive
|
100 |
await fetch('https://t1ckbase-minesweeper.hf.space');
|
101 |
});
|
|
|
96 |
|
97 |
Deno.serve(app.fetch);
|
98 |
|
99 |
+
Deno.cron('keep alive', '0 0 * * *', async () => { // keep alive?
|
100 |
await fetch('https://t1ckbase-minesweeper.hf.space');
|
101 |
});
|