Zemal Slack Bot
- 3 Devlogs
- 2 Total hours
This bot isn’t slacking off, it replies to messages 24/7!
This bot isn’t slacking off, it replies to messages 24/7!
finallyyy my first Slack bot is working!!
today i improved my bot by adding a 5 second timeout to the catfact and joke APIs, so if they don’t respond the bot won’t keep waiting. i also improved the error messages, fixed some small mistakes in my code and checked everything again.
i updated my README too, explaining what my bot does, all 6 commands, how to run it and what i learned while making it.
then i pushed everything to GitHub, updated my Nest server and restarted the bot. i tested all 6 commands in Slack and they are all working!!
i honestly learned so many things from this project, especially how APIs, GitHub, SSH and hosting work. i am really happy that i finally made my own bot!
Today I finally deployed ZemalBot to Hack Club Nest!
I learned how to connect to a Linux server using SSH, install Node.js and Git, and set up my project on the server. I also learned how to use systemd to keep my bot running in the background.
The best part was testing the bot after disconnecting from SSH, and it still replied in Slack!
I also fixed the dependency security issues, improved the help menu and uptime display, and pushed my latest changes to GitHub.
I’m really happy with how much I’ve learned while building my first Slack bot!
Worked on ZemalBot today and made a lot of progress. I finished the local setup, added six custom slash commands, and added API-powered cat fact and joke commands using Axios. I tested all of the commands in Slack, including ping, hello, status, help, cat facts, and jokes, and they are working properly now. I also pushed the full project to GitHub and improved the README with setup instructions, command details, API information, and security notes. The main thing left is deploying ZemalBot to Hack Club Nest so it can stay online 24/7 even when my laptop is off. My Nest application is still pending approval, so I’ll finish the hosting part once I get access.