How I stay motivated when I feel days are off

Leo Baecker
Aug 17, 2018 · 2 min read

To help me feel progress, I made a quick Telegram bot that sends me push notifications when:

  • a visitor uses the Ping Tool or sign ups 👻
  • a user adds a monitor or a status page 📺
  • a user subscribes to a plan 🎉
  • a recurrent payment occurs 🤑

and a bunch of other actions that are useful to me.

Image for post
Image for post

Celebrate the small wins

Image for post
Image for post
Red circles are churned subscriptions

How to build the Telegram bot

Here is my code:

I am using a set of pre-made actions that is passed as the first parameter message and then send real JSON as a second that is being formatted as it is (because I like how readable JSON is):

const { telegrambot, ACTIONS } = require('../scripts/telegram-bot.js');

UserController.create(payload...);
telegrambot(ACTIONS.NEW_USER, { email: payload.email });

Voilà!

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store