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

My first slack bot!

  • 2 Devlogs
  • 2 Total hours

A Slack Bot that offers utility commands.

Ship #1 Changes requested

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.

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

1h 26m 6s logged

I finished adding 4 more commands to the bot and deployed it on Nest.

I finished adding 4 more commands to the bot and deployed it on Nest.

Replying to @VoidHacker

0
35
Open comments for this post

24m 13s logged

Finished adding the basic commands to my slack bot. This is my first time messing around with APIs and making a bot. This is pretty cool!

Finished adding the basic commands to my slack bot. This is my first time messing around with APIs and making a bot. This is pretty cool!

Replying to @VoidHacker

0
6

Followers

Loading…