Runs every 1 hrs
Fork
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import process from "node:process";
import { pushover } from "https://esm.town/v/meatcar/pushover";
import { watchWebsite } from "https://esm.town/v/chet/watchWebsite?v=7";
export async function watchLCBO_JD3L() {
const url = "https://www.lcbo.com/en/storeinventory/?sku=517383";
const { subject, body } = await watchWebsite(url);
return pushover({
token: process.env.pushover_app_key,
user: process.env.pushover_user_key,
message: body,
title: subject,
url,
});
}
👆 This is a val. Vals are TypeScript snippets of code, written in the browser and run on our servers. Create scheduled functions, email yourself, and persist small pieces of data — all from the browser.