Mastodon-compatible bot for posting updates about changes and impediments of Warsaw public transport. https://fedi.wojciech.space/@wtp_waw_bot
- TypeScript 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| src | ||
| .gitignore | ||
| CHANGELOG.md | ||
| LICENSE.md | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
WTP Waw Bot
Bot for posting the latest news from Warsaw Transport Authority page, parsed from RSS feed, to Mastodon and BlueSky.
Bot parses RSS feeds from Warsaw's Public Transport Authority webpage for new events of changes or impediments.
Refresh of impediments feed occurs every five minutes, of changes every two hours.
Installation
Clone project and install dependencies
git clone https://codeberg.org/wojciech_space/wtp-fedi-bot
cd wtp-fedi-bot
npm install
Environment Variables
To run this project, you will need to add the following environment variables to your .env file
BEARER_TOKEN - to interact with GoToSocial/Mastodon API. Details regarding generating token in GoToSocial can be found here.
START_DATE - to filter out older messages about changes or impediments.
INSTANCE_URL - root URL of your API server, without trailing forward slash (/)