A Self-Care Slack Bot for Postman API Hackathon
Work healthily. Live happily. This simple motto is the inspiration behind the Self Care for Devs API. As developers, we make the world a better and more efficient place via technology - but at the expense of our health.
We are constantly sitting down, exposing our eyes to screens and skipping meals. It is a common occurrence to find developers with muscle strains on their backs, necks, legs and even eyes. Many of us are also heavily addicted to caffeine and with the rising issue of burnouts in the tech community, my team and I decided to take the first step.
By building the Self-Care for Devs API, we hope to encourage fellow developers to start taking better care of their health before doing what they do best - building cool stuff for the world to see!
Hello everyone! Time flies so fast, doesn't it? I realize that I've been so busy building projects for hackathons back-to-back. It starts with Hashnode's Christmas Hackathon last year, then the New Year New Hack and now this one. That's 3 hackathons in a row!
In this article, let me present to you the project my team and I built for the Postman Hackathon.
About the Postman Hackathon
This hackathon runs from January 5 to 25. The challenge is to create a Postman public workspace with a Collection of APIs and build something that is creative, has compelling value to developers, addresses a problem, or has community interest.
At that time I had just recovered from my 48-hour New Year New Hack hackathon, where the Image Classifying Pokedex was born. I didn't plan on participating on this project but on January 8, I got an idea, so I had to register.
Self Care for Devs API
The API is essentially a Slack Bot that sends notifications to users on self-care habits, as a reminder to always take care of themselves. Users can subscribe to different types of services (reminders). The bot also provides reminders on tasks on your to-do lists.
Here's an overview of what the bot can do.
|Returns list of commands|
|Returns list of todos|
|Adds task and deadline time in HH:mm in the todo list|
|Marks task as completed|
|Receive notifications on the specified service|
|Stop notifications from the specified service|
|Sends a motivational quote every morning|
|Sends notifications to take eye breaks every 30 minutes, with helpful tips on eye care|
|Sends notifications to stretch once every hour, with helpful infographics to follow|
|Sends reminder to drink water and only H20 every 2 hours|
|Sends programming-related memes every 3 hours to brighten the day|
|Sends frequent reminders on random things like your posture, lighting on your setup, stand up occasionally and take eye breaks|
Simply type the slash command action you want the bot to do and the appropriate parameters if any.
Once you have subscribed to a specified notification, the bot will do its job and remind you according to its set interval. As seen below, stretch notifications will be sent every hour once you've subscribed.
Note: Because of the bot's nature to keep reminding and sending us notifications, our team nicknamed this bot the Granny Bot haha :D
This wonderful project could not have been made without my team members' dedication and efforts. What makes this hackathon truly a special one for me was that it was the first time I reached out and collaborated with my Twitter follower and amazing friend, V Thulisile Sibanda!
Since this hackathon is virtual, it was my first time collaborating with another developer on the other side of the world. Despite our geographical distance and difference in tech stacks, we overcome challenges together and build this project smoothly.
Whether we win this hackathon or not, this project is a winner to me. Thulie was an incredible, passionate and wonderful teammate. Even though building APIs was new to her because of her data scientist background, she didn't let that stop her from trying her best and contributing significantly to the project.
Thanks for reading this article! If you want to use this API to easily create your own Self Care Bot aka Granny Bot, feel free to visit the project links below. Stay healthy and safe with Self-Care for Devs! Cheers!