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 hnFollowShowHNPosts() {
let posts = await hnLatestPosts({
tags: "show_hn",
search_by_date: true,
});
let { text, subject } = await hnEmail({ posts });
if (posts.length)
await email({ text, subject });
return text;
}