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

My first slack bot!

  • 1 Devlogs
  • 0 Total hours

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

Ship #1 Pending review

Built a Slack bot with 5 slash commands: /zair-ping (latency check), /zair-help (list commands), /zair-catfact and /zair-joke (fetch from public APIs), and /zair-8ball (magic 8-ball). Deployed it on Hack Club Nest as a systemd service with auto-restart, so it stays online 24/7 even when my laptop is closed. The trickiest part was getting the systemd service and Slack Socket Mode auth working together, and registering new slash commands in the Slack app config after adding them to the code. To test: run any of the commands in the workspace where the bot is installed, e.g. /zair-8ball will this ship?

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

27m 20s logged

Deployed the bot 24/7 on Hack Club Nest using systemd, so it stays online even with my laptop closed. Added a logging middleware to track command usage and a new /zair-8ball command on top of ping/help/catfact/joke. Wrote a README documenting setup and deployment.

0
0
1

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…