Runs every 7 days
Fork
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { email } from "https://esm.town/v/std/email?v=9";
import { hnEmail } from "https://esm.town/v/stevekrouse/hnEmail?v=20";
import { hnLatestPosts } from "https://esm.town/v/stevekrouse/hnLatestPosts?v=18";
export async function hnClojure({ lastRunAt }: Interval) {
let posts = await hnLatestPosts({
query: "clojure",
lastSyncTime: lastRunAt,
search_by_date: true,
});
let { text, subject } = await hnEmail({ posts });
if (posts.length)
await email({ text, subject });
}