Public
Real-time Dubai/UAE disaster alerts via Telegram DM
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data ā all from the browser, and deployed in milliseconds.
Real-time disaster monitoring for Dubai & UAE ā sends you a Telegram DM the moment something happens that affects health, security, or war.
monitor.ts(interval, every 15 min) ā fetches disaster news from Google News RSS filtered for UAE/Dubai + disaster keywordslib/news.tsā parses RSS, filters by relevance (UAE location + disaster keywords, excludes sports/entertainment), scores severitylib/db.tsā SQLite tracks sent alerts (deduplication) and stores your Telegram chat IDlib/telegram.tsā sends messages via the Telegram Bot APIwebhook.ts(HTTP endpoint) ā receives Telegram messages so you can register your chat ID with/start
- Open Telegram and message @BotFather
- Send
/newbot - Give it a name (e.g. "Dubai Disaster Alerts") and a username
- Copy the bot token it gives you
š Add TELEGRAM_TOKEN here: https://www.val.town/x/aunova/dubai-disaster-alerts/environment-variables?key=TELEGRAM_TOKEN
- Run
main.ts(click Run) ā this registers the webhook with Telegram - Open Telegram, find your bot, and send
/start - The bot will confirm registration ā
You're done! You'll receive disaster alerts every 15 minutes.
| Command | Description |
|---|---|
/start | Register your chat ID to receive alerts |
/test | Send a test alert to verify everything works |
/status | Check system status |
- šØ Disasters & emergencies ā earthquakes, floods, fires, explosions, storms, building collapses
- š„ Health crises ā disease outbreaks, epidemics, contamination, chemical spills, biohazards
- š Security threats ā attacks, terrorism, bombings, kidnappings, evacuations, state of emergency
- āļø War & conflict ā missiles, airstrikes, shelling, military operations, casualties
Google News RSS (UAE-focused)
ā
ā¼
monitor.ts (every 15 min)
ā
āāā lib/news.ts āāāŗ Parse + filter (disaster keywords + UAE location)
āāā lib/db.ts āāāāāāŗ Deduplicate via SQLite
āāā lib/telegram.ts āŗ Send DM via Telegram Bot API
ā
ā¼
Your Telegram inbox š±
- Free tier: checks every 15 minutes (minimum interval on free plan). Upgrade to Pro for 1-minute checks.
- Deduplication: each article URL is stored in SQLite ā you'll never get the same alert twice.
- Auto-cleanup: sent alert records older than 30 days are automatically removed.
- Source: Google News RSS aggregating from Khaleej Times, The National, Gulf News, Reuters, AP, and many more.
| Key | Description |
|---|---|
TELEGRAM_TOKEN | Bot token from @BotFather |