Sends a daily message to the team Slack channel. Similar to 37signals' What did you work on today?

Readme
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { fetch } from "https://esm.town/v/std/fetch";
import { getDayName } from "https://esm.town/v/stevekrouse/getDayName?v=2";
import process from "node:process";
export const dailySlackRoundup = (async () => {
const res = await fetch(process.env.BRAINBOT_WEBHOOK_URL, {
method: "POST",
body: JSON.stringify({
"text":
`✌️ *Time for the ${getDayName()} round-up!* If you've worked today, what did you work on? Anything in your way?`,
}),
});
return res.statusText;
});
👆 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.