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

Zemal Slack Bot

  • 3 Devlogs
  • 2 Total hours

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

Ship #1

I made ZemalBot, my first Slack bot for Hack Club Stardance!

My bot has 6 commands. It can say hello, check if it’s online, show its uptime, give random cat facts and jokes using APIs, and show all the commands in a help menu.

Honestly before making this project I didn’t know much about Slack bots, APIs or servers. I followed the Hack Club guide and slowly started learning how everything works.

The most challenging part for me was GitHub and hosting. I had two GitHub accounts connected and couldn’t understand why my code was not pushing. I also had to learn how to use SSH, connect to my Nest server and keep my bot running using systemd.

The part I’m most proud of is that my bot is now running even when my laptop is closed! I tested all 6 commands and they are working.

To try my project, join Hack Club Slack, go to #bot-spam and type /zemalbot-help. You can also try /zemalbot-ping, /zemalbot-hello, /zemalbot-status, /zemalbot-catfact and /zemalbot-joke.

I’m really happy because this was my first time building something like this and I learned so many new things!

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

34m 41s logged

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!

0
0
11
Open comments for this post

24m 8s logged

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!

0
0
6
Open comments for this post

1h 2m 38s logged

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.

0
0
22

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…