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

Astro Date Bot

  • 1 Devlogs
  • 1 Total hours

I'm building Astro-Date, an interactive Slack bot that connects users with the cosmos by integrating the NASA APOD API directly into their workspace. Built with Python, Flask, and the Slack Bolt API, it allows users to instantly discover and view the specific astronomical phenomenon that occurred on their birthdate or any other date.

Open comments for this post

48m 4s logged

Finally, Astro-Date is online. It’s a Slack bot that tells you what phenomenon was captured on the date you were born, or any other date.

From a technical perspective, it’s just Python code that runs on Vercel. So, when you call the bot in Slack and send a date, it triggers the server, which sends it to the NASA API to get the photo and data, then sends it back to Slack. But from another perspective, it shows you how the universe celebrated your birthday.

At first, I thought that this project wouldn’t take more than an hour and that I could make it, test it, and submit it in one day, but it wasn’t like that. I had some issues that were clear, so I fixed them, but some needed debugging, like the ‘respond before process’ issue. The code was sending ‘OK’ to Slack after it got the request; then, it would process, get the data from the NASA API, and send it to Slack. But what really happens is that the server would go down after sending ‘OK’ to Slack, so it never sent back the data.

So, I changed it to ‘process before response,’ and a simple line, process_before_response=True, fixed everything.

Finally, Astro-Date is online. It’s a Slack bot that tells you what phenomenon was captured on the date you were born, or any other date.

From a technical perspective, it’s just Python code that runs on Vercel. So, when you call the bot in Slack and send a date, it triggers the server, which sends it to the NASA API to get the photo and data, then sends it back to Slack. But from another perspective, it shows you how the universe celebrated your birthday.

At first, I thought that this project wouldn’t take more than an hour and that I could make it, test it, and submit it in one day, but it wasn’t like that. I had some issues that were clear, so I fixed them, but some needed debugging, like the ‘respond before process’ issue. The code was sending ‘OK’ to Slack after it got the request; then, it would process, get the data from the NASA API, and send it to Slack. But what really happens is that the server would go down after sending ‘OK’ to Slack, so it never sent back the data.

So, I changed it to ‘process before response,’ and a simple line, process_before_response=True, fixed everything.

Replying to @Anas

0
2

Followers

Loading…