Skip to content

Commit 1a95d6f

Browse files
committed
set the webhook
1 parent 5d0bb9d commit 1a95d6f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

get_webhook.mjs renamed to set_webhook.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ const sha256 = async (text) =>
1212
const base_url = process.argv[2];
1313
const token = process.argv[3];
1414
const path = await sha256(token);
15-
16-
console.log(base_url + path);
15+
const url = base_url + path;
16+
console.log(url);
17+
fetch(url + '?command=set').then((response) => response.json()).then(console.log);

0 commit comments

Comments
 (0)