RandomBot
- 2 Devlogs
- 1 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!
Today I wrapped up the development of RandomBot for the Hack Club Stardance Slack Bot mission! The bot is fully finished, tested, and running live.
What got finished in v1.0.0:
systemd (slackbot.service) so it runs 24/7 in the background..env) for Slack tokens and verified process logging via journalctl.README.md, LICENSE (MIT), CHANGELOG.md, .env.example, and .gitignore.people.json) works seamlessly across process restarts.Key Learnings:
Building this project step-by-step taught me a lot about Node.js array manipulation, handling the local filesystem (fs), managing JSON data, Slack’s @slack/bolt framework with Socket Mode, and setting up persistent Linux services on Nest.
The project is officially shipped and ready to use! 🚀
Today I started building my first Slack bot for the Hack Club Stardance Slack Bot mission.
The idea is pretty simple. I wanted to make something where you can add people to a list and then let the bot randomly pick someone.
/randombot-add [name] — adds someone to the list/randombot-list — shows everyone in the list/randombot-pick — randomly picks someone/randombot-clear — clears the list/randombot-help — shows the available commandsI’m using a small people.json file to save the list. The bot creates it automatically if it doesn’t exist, and I added it to .gitignore so the list won’t be uploaded to GitHub.
I’m building everything step by step instead of trying to make the whole thing at once. So far I’ve learned more about arrays, fs, JSON and how Slack slash commands work.
Next I want to test everything in Slack and continue improving the bot.