@VoidHacker on My first slack bot!
What did you make?
HelpBot is a Slack bot built with Node.js and Slack Bolt that provides 8 slash commands including real-time weather lookups, dictionary definitions, DM reminders, random cat facts, jokes, and random Hack Club projects from Github.
What was challenging?
The most challenging part was debugging the weather command. The API returns geocoding city name which needs to be converted into coordinates before fetching weather data. My typo in spelling longitude caused my code to fail, and it was a hard error to spot.
What are you proud of?
I'm proud of the reminder command. It DMs the user after a set delay using setTimeout(), which required understanding how to use the Slack client to send messages outside of a command response.
What should people know so they can test your project?
To test the project, join the Hack Club Slack and try any of the slash commands: /hb-ping, /hb-weather [city], /hb-define [word], /hb-remind [time] [message], or /hb-ship.
- 2 devlogs
- 2h
- Make a Slack Bot