adigi.id
← Back to all portfolio
Own Products2024

Earthquake Alert Bot

A Telegram bot that monitors official BMKG earthquake data and sends real-time notifications based on a radius and magnitude threshold each user can configure - running on Cloudflare Workers with no server cost.

  • Cloudflare Workers
  • Telegram Bot
  • Real-time

For a warning system like this, even a few minutes of delay can make the information useless. This bot polls official BMKG earthquake data on a schedule, processes new data as soon as it’s available, and pushes Telegram notifications - with a radius and magnitude threshold each user can configure themselves via bot commands.

The first version was written in Python, then fully rewritten in TypeScript running on Cloudflare Workers - so the bot runs without a server to manage, while being cheaper and more reliable. The main challenge wasn’t feature complexity, but reliability - keeping the bot running stably, handling data sources that are occasionally inconsistent, and avoiding duplicate or incorrect notifications.