You are browsing as a guest. Sign up (or log in) to start making projects!

OrbitBot

  • 2 Devlogs
  • 1 Total hours

A cozy slack bot, that when prompted with certain words, shows you certain pictures from NASA!

Ship #1

I built Orbit Bot, a Slack bot that pulls live NASA APOD images and adds space-themed features like facts, an oracle, and a launch animation. The main challenge was handling Slack Block Kit formatting and making sure external APIs like NASA didn’t break the bot when responses failed or were rate-limited. I’m most proud of the design and pushing through to complete the project, aswell as doing some extra error handling. To test it, just run the slash commands like /nasapic, /orbitfact, and /orbitlaunch inside Slack.

Try project → See source code →
Open comments for this post

41m 20s logged

Orbit Bot — Dev Log

Built a simple Slack bot that pulls in space-related APIs and adds a bit of personality on top of them.

What’s in so far

The bot runs on Slack Bolt (Socket Mode) and is wired up with a handful of slash commands and one mention handler.

/nasapic pulls the NASA Astronomy Picture of the Day and displays it with a formatted Slack block (image or video depending on the response type)
/orbitfact returns a random space fact from a small built-in list
/orbitoracle gives a randomized “cosmic answer” for fun decision making
/orbitcatfact pulls live data from the Cat Fact API
/orbitlaunch simulates a multi-stage launch sequence using timed message updates
/orbitping checks responsiveness and returns latency
/orbithelp lists all available commands in a clean help panel

APIs used
NASA APOD API (Astronomy Picture of the Day)
Cat Fact API

Both are pulled using Axios and handled with basic error fallback messages.

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:

Slack bot token
Slack app token (Socket Mode)
NASA API key

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

Orbit Bot — Dev Log

Built a simple Slack bot that pulls in space-related APIs and adds a bit of personality on top of them.

What’s in so far

The bot runs on Slack Bolt (Socket Mode) and is wired up with a handful of slash commands and one mention handler.

/nasapic pulls the NASA Astronomy Picture of the Day and displays it with a formatted Slack block (image or video depending on the response type)
/orbitfact returns a random space fact from a small built-in list
/orbitoracle gives a randomized “cosmic answer” for fun decision making
/orbitcatfact pulls live data from the Cat Fact API
/orbitlaunch simulates a multi-stage launch sequence using timed message updates
/orbitping checks responsiveness and returns latency
/orbithelp lists all available commands in a clean help panel

APIs used
NASA APOD API (Astronomy Picture of the Day)
Cat Fact API

Both are pulled using Axios and handled with basic error fallback messages.

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:

Slack bot token
Slack app token (Socket Mode)
NASA API key

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

Replying to @LilSaadt

0
76
Open comments for this post

20m 21s logged

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)

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)

Replying to @LilSaadt

1
27

Followers

Loading…