Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/skiniks/mta-alerts-bot
A simple bot that checks for MTA alerts and posts them to @mtaalerts.bsky.social on Bluesky.
https://github.com/skiniks/mta-alerts-bot
atproto bluesky bot javascript
Last synced: about 1 month ago
JSON representation
A simple bot that checks for MTA alerts and posts them to @mtaalerts.bsky.social on Bluesky.
- Host: GitHub
- URL: https://github.com/skiniks/mta-alerts-bot
- Owner: skiniks
- Created: 2023-05-25T11:21:08.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-20T16:52:36.000Z (9 months ago)
- Last Synced: 2024-05-01T13:37:33.850Z (8 months ago)
- Topics: atproto, bluesky, bot, javascript
- Language: TypeScript
- Homepage: https://mtaalerts.bsky.social
- Size: 150 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.