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

My first slack bot!

  • 2 Devlogs
  • 2 Total hours

This bot isn't slacking off, it replies to messages 24/7!

Open comments for this post

1h 27m 1s logged

Final devlog + demo ✨

Finished working on botty!
How it works:

  • you run ‘/botty-convert {amount} {base} to {target}’
  • you can enter a decimal amount
  • currency codes aren’t case-sensitive
  • works with A LOT of different currencies

Technical parts:

  • I used a regex to separate between values more dynamically
  • I Learnt the difference between the built-in fetch & axios.get()

The hardest part was the error handling & creating intuitive error messages that depend on the error type.

0

Loading discussion…

0
20
Open comments for this post

20m 57s logged

Just finished my first working version of the slack bot mission!

What did I learn:

  • How to create a bot and generate the API keys on slack
  • How it’s important to wrap your API calls in a try & catch block or otherwise your app will stop working as soon as any error happens
  • How much hack club is awesome and very guided! I thought that things will be hard but it turned out pretty easy, actually!

What I’m aiming to:

  • I’ll probably turn it to be a currency convertor (for example, running ‘1 usd to euros’ should return 0.87 euros) because this sounds interesting.
1

Loading discussion…

0
27

Followers

Loading…