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

The Lazy One

  • 2 Devlogs
  • 3 Total hours

Just a Slack Bot for lazy people.

Ship #1

# The Lazy One Slack Bot

I created a Slack Bot which is Live 24/7 and replies to the commands specified in the screenshot. It was quite easy to understand how to create commands and how to use APIs to get data from other applications. I tried to organize the code as much as possible and added the features that I would have liked on a Slack Bot. The custom commands added without using the guide are:

- `/lazy-exchange` - This requires 3 arguments (see the screenshot) and can convert any given amount of money from one currency to another.
- `/lazy-reminder` - This requires 2 arguments and can set a reminder, pretty simple.
- `/lazy-astronomy` - This command gets NASA's APOD and shows the title, explanation and image (or video link)
- `/lazy-verse` - Get a random Bible verse

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

1h 41m 8s logged

Devlog 2

New commands!

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!! :)

0

Loading discussion…

0
3
Open comments for this post

1h 31m 22s logged

Devlog 1

My first bot!!

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 :)

0

Loading discussion…

0
4

Followers

Loading…