strecken.info bot
A telegram/mastodon bot that sends you strecken.info disruption updates.
Open a chat with the bot: t.me/strecken_info_bot and write /start
. Now you are registered for disruption updates. The bot will fetch all disruptions from strecken.info and filter them and notify you if there are new or updated disruptions. If you want to unsubscribe from disruption updates just write /unsubscribe
.
Just follow https://social.adridoesthings.com/@strecken_info on mastodon.
You are able to host this bot yourself by using docker or build a binary with cargo
yourself but you have to host a postgresql database too.
Docker: docker run --name strecken-info-telegram -d -e POSTGRESQL_CONFIG=YOUR_POSTGRESQL_CONFIG_HERE -e TELEGRAM_BOT_TOKEN=YOUR_TELEGRAM_BOT_TOKEN -e MASTODON_URL=https://your.mastodon.instance.com -e MASTODON_ACCESS_TOKEN=YOUR_ACCESS_TOKEN ghcr.io/adridevelopsthings/strecken-info-telegram:main
By source: Build a binary with cargo build --release
and run the binary: You have to set the environment variable POSTGRESQL_CONFIG
and TELEGRAM_BOT_TOKEN
for telegram and/or MASTODON_URL
and MASTODON_ACCESS_TOKEN
for mastodon.
The database changed from version 0.3.4
to version 0.4.0
from sqlite to postgresql. Use the migration script to migrate.
If you noticed some bugs or are interested in new features just create an issue. You can also contribute to this repository by forking this repository and creating a pull request.