skiniks / mta-alerts-bot

A simple bot that checks for MTA alerts and posts them to @mtaalerts.bsky.social on Bluesky.

Home Page:https://mtaalerts.bsky.social

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MTA Alerts Bot

This project is a bot that fetches alerts from the MTA API, checks for duplicates in a Supabase database, and posts new alerts to a Bsky feed. The bot is deployed on Vercel and runs every 2 minutes.

Prerequisites

The project uses the following dependencies:

  • @atproto/api for interacting with the Bsky API

Configuration

The project requires several environment variables to be set:

MTA_API_KEY=your_mta_api_key
MTA_API_URL=your_mta_api_url
BSKY_USERNAME=your_bsky_username
BSKY_PASSWORD=your_bsky_password

Deployment

The bot is deployed on Vercel and uses a cron job to run every 2 minutes. The cron job is configured in the vercel.json file.

About

A simple bot that checks for MTA alerts and posts them to @mtaalerts.bsky.social on Bluesky.

https://mtaalerts.bsky.social


Languages

Language:TypeScript 98.6%Language:JavaScript 1.4%