Avatar

mikker

1 public val
Joined August 13, 2023

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

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;
});
Next