The Lazy One
- 2 Devlogs
- 3 Total hours
Just a Slack Bot for lazy people.
Just a Slack Bot for lazy people.
Finally got the Bot to work with some more commands. The new commands are:
/lazy-reminder [minutes] [reason] - Sets a reminder for a given amount of minutes and pings you back once the time has run out.
/lazy-verse - Gives you a random Bible verse
I also formatted the help command to look a little prettier and updated the GitHub repo with a list of all available commands and the steps to run the bot locally.
I found this project quite easy, but it was fun! I learned how to manage API responses and obviously how to create a Slack bot.
Also I got my Nest Account accepted, so now the Bot runs 24/7!! :)
After more than 1 hour I managed to get my Bot running on my machine (Still waiting for Nest approval) and the 2 custom commands I added are:
/lazy-exchange [OriginalCurrency] [TargetCurrency] [Amount] - This command lets you convert currency using the Frankfurter public API, just type the currency you want to convert, e.g. “USD”, then type the target currency, e.g. “EUR”, and finally the amount to convert, e.g. “1000”.
/lazy-astronomy - to get NASA’s APOD
As of now it only does these 2 pretty easy functions, but I’ll work on more commands soon!
Fortunately, the code isn’t hard to understand and using APIs is pretty easy :)