src | ||
.gitignore | ||
.lohr | ||
Cargo.lock | ||
Cargo.toml | ||
README.org |
BadNews: Matrix Bot, Bringer of Bad News
What is this?
BadNews
is a Matrix bot, watching your systemd/journald logs, and reporting
bad news to you.
Why?
A mix of wanting to toy around with the matrix_sdk crate and getting some simple alerts from my hosted services.
Setup
Write up a configuration file at config.yaml
:
homeserver: "https://matrix.example.net"
username: "bad-news"
password: "matrix password for user bad-news"
state_dir: "state/"
room_id: "!DeaDbEef:example.net"
units:
- nginx.service
Then run the bot:
cargo run -- --config config.yaml
Contributing
Please send patches to /alarsyo/bad-news/src/commit/9dcfe741820710c15cf276c7e9549aabf2d1e5bf/~alarsyo/patches@lists.sr.ht with the prefix PATCH
bad-news
.
You can use the following commands to set up git
appropriately;
git config sendemail.to '~alarsyo/patches@lists.sr.ht'
git config format.subjectPrefix 'PATCH bad-news'