1
0
Fork 0
Original URL (with bug tracking etc.): https://sr.ht/~michalr/hswro-alarm-bot/
Go to file
Michał Rudowicz ef746d73ec Remove unnecessary newline 2024-02-11 23:06:30 +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
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 Remove unnecessary newline 2024-02-11 23:06:30 +01:00
sender_worker.go Logging 2024-02-11 22:48:11 +01:00
sender_worker_test.go Logging 2024-02-11 22:48:11 +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.