Part 2 of my journey to create a telegram bot that will remind changing my car oil for me.
# Today was productive
- I were able to produce some basic output.
- Figured out the stack I'm going to use
- Figured out the 2 operating modes for the bot
# Basic output
# Development Stack and tools
I decided to use nodejs for the backend, since it is the easiest to get started with. For the database I decided to go with Firebase for the generous free tire and realtimeness.
For working with the telegram bot API I used NPM package: node-telegram-bot-api (opens new window) as the wrapper to work with the telegram bot api.
Didn't want to use frameworks or complicated file structure I stucked with the simplest working structure 👇
Spent most of the day lurking around telegram bot API, understanding how to send simple messages and get responses.
Firebase will store the state like only display welcome message once to the users.
EasyCron will hit the server every 3 hours to calculate and notify users based on the formula explained in the part 1 (opens new window)
# Operating modes
You may already noticed the 2 options shown in the basic output image.
- Remind me in x monthes For the people who just want Oilly to remind them in a specific time.
- Based me based on my algorithm This where all the magic is happening more on this in part3 (opens new window).
I'm starting to see pieces falling into their places, It's been only a one day and I could tell that I'm at 50% mark.
I'll keep posting about the details of this light piece of software.
To be continued, Follow for more...