A helpful newspaper bot for Hack Club. Archimedes handles story writing, editor approvals (like the #confessions channel), and auto-generation of both Slack messages and emails sent out to folks subscribed.
Here from High Seas? I'd recommend watching the demo video to get a better idea of how Archimedes works!
Reporters initially write drafts of their stories in Archimedes' app home. When they're ready, they can click a button to stage their story for publication. A message will then be sent in the approvals channel, where editors can approve or reject the story.
Archimedes will automatically generate both a Slack message in the #happenings channel, and an email for each issue. Slack-specific features such as user mentions and emojis will be handled automatically.
To install dependencies:
bun install
Now, let's configure our environment variables.
export SLACK_BOT_TOKEN=xoxb-...
export SLACK_SIGNING_SECRET=...
export AIRTABLE_API_KEY=...
We also need to setup the airtable.json
file, which contains information about our Airtable base. Let's start by running the schema generator:
AIRTABLE_API_KEY=... AIRTABLE_BASE_ID=... bunx airtable-ts-codegen
You then need to move the mappings
parts to the airtable.json
file, as well as the baseId
and tableId
s.
To run:
bun dev