Runs every 1 hrs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { email } from "https://esm.town/v/std/email?v=9";
import { inkAndSwitchRssUrl } from "https://esm.town/v/stevekrouse/inkAndSwitchRssUrl";
import { newRSSItems } from "https://esm.town/v/stevekrouse/newRSSItems";
export async function rssDemo1(interval) {
const items = await newRSSItems({
url: inkAndSwitchRssUrl,
lastRunAt: interval.lastRunAt,
});
if (items.length)
return email({
text: JSON.stringify(items, null, 2),
subject: "New from Ink & Switch",
});
}
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
October 23, 2023