Hackerspace Wroclaw Alarm Bot
Go to file
Michał Rudowicz 079e32e893 Some TG-specific improvements with possible other methods as well 2024-02-18 18:00:01 +01:00
.build.yml Disable arm* builds as they aren't used right now anyway 2024-02-11 22:58:20 +01:00
.gitignore Mock time functions 2024-02-11 11:51:41 +01:00
.pre-commit-config.yaml Add pre-commit to CI 2024-02-11 14:45:14 +01:00
COPYING Initial commit 2024-02-08 19:23:46 +01:00
README.md Message throttling, OMIT_TG 2024-02-09 23:32:32 +01:00
filters.go Actually use FilterByLastSeen() 2024-02-15 20:20:56 +01:00
filters_test.go FilterByLastSeen() persistence 2024-02-15 20:06:06 +01:00
go.mod More reorganizing, new throttling 2024-02-11 00:13:31 +01:00
go.sum More reorganizing, new throttling 2024-02-11 00:13:31 +01:00
main.go Some TG-specific improvements with possible other methods as well 2024-02-18 18:00:01 +01:00
sender_worker.go Some TG-specific improvements with possible other methods as well 2024-02-18 18:00:01 +01:00
sender_worker_test.go Some TG-specific improvements with possible other methods as well 2024-02-18 18:00:01 +01:00

README.md

Hackerspace Wroclaw Alarm Bot

builds.sr.ht status

Warning: this is a proof of concept, don't rely on it

I didn't even test it yet so no idea if it works

Usage

$ TELEGRAM_APITOKEN=YOUR_API_TOKEN ./alarm_bot --satel_addr=127.0.0.1 --satel_port=31337 --tg_chat_id=YOUR_CHAT_ID_FROM_BOTFATHER

Debugging

Set the OMIT_TG environment variable to, well, omit sending anything over to Telegram and just see the logs instead.