RandomBot — Devlog
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.
What it can do so far
-
/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 commands
I’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.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.