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

My first slack bot!

  • 4 Devlogs
  • 3 Total hours

This bot isn't slacking off, it replies to messages 24/7!

Open comments for this post

15m 10s logged

/zenith-mars, /zenith-spacex and a couple others just stopped responding and i couldnt figure out why for a bit.

turns out it wasnt my code at all. the SpaceX API got archived on GitHub back on June 6th, its basically dead now. NASA’s Mars Photos endpoint was down too, separate issue entirely. so i just pulled both out.

replaced them with two new commands that use NASA’s APIs that are actually still alive:

/zenith-earth — latest photo of Earth from the EPIC camera on the DSCOVR satellite

/zenith-neo-week — biggest asteroid passing by Earth this week

one thing to know — dont fire commands back to back without waiting for a reply first, you’ll hit NASA’s rate limit and the second one fails silently. took me way too long to realize this was also why APOD was acting weird earlier, not an actual bug.

0
0
5
Ship #1 💀 Cursed

# Zenith is Live! 🚀

It's done.

After spending the whole day building and debugging, **Zenith** is now live 24/7 on Hack Club Nest.

---

## What I Built

A Slack bot that tracks what's happening in space in real time.

It has **11 slash commands** powered by NASA, SpaceX, and ISS APIs. I also added:

* A daily space digest posted automatically every morning
* SpaceX launch alerts sent one hour before liftoff

---

## The Journey

I started by setting up the Slack app and implementing all the slash commands.

I hit a wall early when GitHub blocked my pushes because I accidentally committed my `.env` file containing my API tokens. I had to rewrite the entire Git history to remove it. Lesson learned.

After deploying to Hack Club Nest, most of the commands just... didn't work.

It turned out that Nest blocks outbound HTTPS requests, so all of my NASA and SpaceX API calls were silently failing. Changing every `https://` URL to `http://` fixed everything instantly.

One of those bugs that takes hours to find and five seconds to fix.

After that, everything clicked into place.

---

## Commands

* `/zenith-apod` — NASA Astronomy Picture of the Day
* `/zenith-iss` — Live ISS location with a Google Maps link
* `/zenith-spacex` — Latest SpaceX launch information
* `/zenith-nextlaunch` — Next upcoming launch with countdown
* `/zenith-mars` — Latest Mars rover photo
* `/zenith-astronauts` — Who's in space right now
* `/zenith-asteroids` — Near-Earth asteroids for today
* `/zenith-space-report` — Quick daily space summary
* `/zenith-planet [name]` — Facts about any planet
* `/zenith-help` — List all available commands

---

I'm really happy with how this turned out.

This was my first time deploying something to a real Linux server and keeping it running with `systemd`. It feels great to see it running 24/7.

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

59m 30s logged

ok so yesterday i deployed the bot and was hyped to test it… and half the commands just didn’t work. spent today figuring out why. 

what was broken?

 turns out the server still had the old code even though i pushed to GitHub. git pull was failing quietly because of file conflicts so nothing actually updated. force reset it and it finally synced. then i hit another wall — Hack Club Nest blocks outbound HTTPS. every NASA and SpaceX API call was dying with SSL error 525. the commands that used plain HTTP like /zenith-iss worked perfectly the whole time, i just didn’t notice. switched all the URLs from https:// to http:// and everything came back to life. 

NASA API commands working now:
 /zenith-apod — NASA astronomy picture of the day 
/zenith-mars — latest Mars rover photo 
/zenith-asteroids` — near Earth asteroids today 
/zenith-spacex — latest SpaceX launch info 
/zenith-nextlaunch — next upcoming launch + countdown 
/zenith-space-report — quick space summary 

  daily dashboard added:

a morning digest that posts to #space-alerts every day at 8am. hits NASA, SpaceX, and Open Notify all at once and wraps it into one message — photo of the day, latest launch, and how many people are floating in space right now. pretty happy with how it turned out. —

0
0
5
Open comments for this post

49m 3s logged

so i wanted to build something that combined two things i actually care about — coding and space. ended up making a slack bot called Zenith that pulls live data from NASA and SpaceX through slash commands.

commands i built

/zenith-ping — check if bot is alive
/zenith-apod — NASA astronomy picture of the day
/zenith-iss — live ISS location with google maps link
/zenith-spacex — latest SpaceX launch info
/zenith-nextlaunch — next upcoming launch + countdown
/zenith-mars — latest Mars rover photo
/zenith-astronauts — who is in space right now
/zenith-asteroids — near Earth asteroids today
/zenith-space-report — quick space summary
/zenith-planet [name] — facts about any planet
/zenith-help — show all commands

0
0
4

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…