feat: initial prototype #1

Merged
naomi merged 7 commits from feat/init into main 2025-03-07 11:54:08 -08:00
Showing only changes of commit 867594efbe - Show all commits

View File

@ -43,10 +43,14 @@ const slack = new App({
stateSecret: process.env.SLACK_STATE_SECRET ?? "", stateSecret: process.env.SLACK_STATE_SECRET ?? "",
}); });
slack.command("/mommy", async({ ack, body, respond }) => { slack.command("/mommy", async({ ack, body, say }) => {
await ack(); await ack();
const response = await getMommy(body.text); const trimmed = body.text.trim();
await respond(response); const name = trimmed.length > 0
? trimmed
: undefined;
const response = await getMommy(name);
await say(response);
}); });
const bsky = new AtpAgent({ const bsky = new AtpAgent({