https://github.com/skiniks/mta-alerts-bot
A serverless Bluesky bot that monitors NYC's MTA subway service alerts and shares updates to @mtaalerts.bsky.social.
https://github.com/skiniks/mta-alerts-bot
atproto bluesky bluesky-bot javascript typescript
Last synced: 10 days ago
JSON representation
A serverless Bluesky bot that monitors NYC's MTA subway service alerts and shares updates to @mtaalerts.bsky.social.
- Host: GitHub
- URL: https://github.com/skiniks/mta-alerts-bot
- Owner: skiniks
- License: mit
- Created: 2023-05-25T11:21:08.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-24T11:06:21.000Z (29 days ago)
- Last Synced: 2025-03-25T11:39:15.549Z (28 days ago)
- Topics: atproto, bluesky, bluesky-bot, javascript, typescript
- Language: TypeScript
- Homepage: https://mtaalerts.bsky.social
- Size: 415 KB
- Stars: 14
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MTA Alerts Bluesky Bot
A serverless bot that monitors New York City's subway system through the MTA (Metropolitan Transportation Authority) Realtime Subway Alerts feed and shares updates on Bluesky. The bot fetches service alerts from the NYC subway API once per minute, uses Supabase to prevent duplicate posts, and automatically shares service updates to Bluesky.
## Configuration
Required environment variables:
```
BSKY_PASSWORD=your_bsky_password
BSKY_USERNAME=your_bsky_username
MTA_API_KEY=your_mta_api_key
MTA_API_URL=your_mta_api_url
SUPABASE_KEY=your_supabase_key
SUPABASE_URL=your_supabase_url
```## Deployment
The bot is hosted on Vercel with a cron job scheduled to check for updates every minute, as defined in `vercel.json`.