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

My first slack bot!

  • 2 Devlogs
  • 1 Total hours

A Slack bot built with Node.js and the Bolt framework, deployed on Hack Club Nest for 24/7 uptime. Supports multiple slash commands including /hello, /weather, /funfact, and /calc — each designed to be useful and unique in the Hack Club Slack workspace.

Open comments for this post

17m 15s logged

Verified the deployed Sirius Bot is still online in #sirius-bot-demo by running /sirius-hello and receiving a live reply. While reviewing /sirius-calc, I found that ^ was being interpreted as JavaScript bitwise XOR, so 2 ^ 3 returned 1 instead of 8. I replaced the Function-based evaluator with a small safe expression parser, fixed ^ to mean exponentiation, and added sqrt(…) support. I also added Node test coverage for precedence, powers, square roots, unsafe input, negative roots, and division by zero; all 4 test groups pass. Example: /sirius-calc sqrt(81) + 2 ^ 3 now returns 17.

0
0
2
Ship #1 Changes requested

Built a Slack bot called Sirius Bot for the Hack Club workspace! It has 5 slash commands with the unique /sirius- prefix: /sirius-hello (motivational greetings), /sirius-weather (live weather via wttr.in API), /sirius-fact (random fun facts with fallbacks), /sirius-calc (safe math evaluator with regex validation), and /sirius-8ball (magic 8-ball with 14 responses). The hardest part was setting up Socket Mode with @slack/bolt so no public server is needed. Super proud of the weather command that pulls real live data! To test it, join the Hack Club Slack and try any /sirius- command.

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

19m 6s logged

Built a Slack bot using Node.js and the @slack/bolt framework with Socket Mode — no public server needed! The bot runs in the Hack Club workspace and supports 5 slash commands: /sirius-hello (motivational greetings), /sirius-weather (live weather via wttr.in), /sirius-fact (random fun facts), /sirius-calc (safe math evaluator), and /sirius-8ball (magic 8-ball). Set up the GitHub repo and got the bot connected and running locally. Next step: deploy to Hack Club Nest for 24/7 uptime!

0
0
3

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…