1
0
Fork 0
Original URL (with bug tracking etc.): https://sr.ht/~michalr/hswro-alarm-bot/
Go to file
Michał Rudowicz 9f67c17fc4 Make sure to send leftover messages when application is closing 2024-02-11 00:24:11 +01:00
.build.yml More reorganizing, new throttling 2024-02-11 00:13:31 +01:00
.gitignore Add pre-commit 2024-02-09 23:32:00 +01:00
.pre-commit-config.yaml More reorganizing, new throttling 2024-02-11 00:13:31 +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 More reorganizing, new throttling 2024-02-11 00:13:31 +01:00
sender_worker.go Make sure to send leftover messages when application is closing 2024-02-11 00:24:11 +01:00
sender_worker_test.go Make sure to send leftover messages when application is closing 2024-02-11 00:24: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.