OrbitBot
- 2 Devlogs
- 1 Total hours
A cozy slack bot, that when prompted with certain words, shows you certain pictures from NASA!
A cozy slack bot, that when prompted with certain words, shows you certain pictures from NASA!
The bot runs on Slack Bolt (Socket Mode) and is wired up with a handful of slash commands and one mention handler.
APIs used
NASA APOD API (Astronomy Picture of the Day)
Cat Fact API
Structure
Everything is currently in a single file for simplicity. Commands are separated clearly and use Slack Block Kit for formatting.
Environment variables handle tokens and API keys:
What I learned / ran into
Slack Block Kit formatting matters a lot more than expected, small mistakes can break whole messages
Socket Mode makes local testing way easier than dealing with public endpoints
Keeping responses short is important
Dev Log — Orbit Bot 🚀
So I am currently trying to build a small Slack bot called Orbit Bot that shows cool NASA space images and simple space commands, just a fun cozy vibe.
I set it up in Slack, connected it to Node.js, and got it responding to basic test commands like /ping to check if it’s alive and learned how to call API’s like for cat images.
I learned how bots listen to messages, how APIs send data, and how to fix things when nothing shows up (which happened a lot at first).
Next steps are adding more space commands like planets, random facts, and maybe daily space images so the bot feels more alive and fun to use. (Also designing the bot aswell)