1
0
Fork 0
Original URL (with bug tracking etc.): https://sr.ht/~michalr/hswro-alarm-bot/
Go to file
Michał Rudowicz 901aa8cfd6 Mock time functions 2024-02-11 11:51:41 +01:00
.build.yml Mock time functions 2024-02-11 11:51:41 +01:00
.gitignore Mock time functions 2024-02-11 11:51:41 +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 Mock time functions 2024-02-11 11:51:41 +01:00
sender_worker.go Mock time functions 2024-02-11 11:51:41 +01:00
sender_worker_test.go Mock time functions 2024-02-11 11:51:41 +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.