AdiBot:HackClub SlackBot
- 1 Devlogs
- 0 Total hours
This bot isn't slacking off, it replies to messages 24/7! AdiBot
This bot isn't slacking off, it replies to messages 24/7! AdiBot
I built AdiBot, a custom Slack bot for the Hack Club workspace that responds to slash commands. Anyone in the Hack Club Slack can use it by typing one of three commands in any channel:
/adibot-ping — checks if the bot is online and shows latency
/adibot-joke — fetches a random joke from an API
/adibot-help — lists all available commands
I built it using Python and the Slack Bolt library, with Socket Mode so no public URL was needed. The bot pulls jokes from the Official Joke API using the requests library. I stored my tokens securely in a .env file and kept them out of GitHub using .gitignore.
For hosting, I deployed it on Hack Club Nest, a free Linux server for students. I set it up as a systemd service so it runs 24/7 and automatically restarts if it ever crashes, even when my laptop is closed.
The trickiest part was dealing with an SSL certificate error on Mac when first running the bot locally, and setting up GitHub authentication on the Nest server. Both were good debugging experiences!