A Matrix bot, bringer of bad news
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Go to file
Antoine Martin b0483d90da matrix_sdk: bump to latest commit 3 years ago
.github/workflows ci: setup cachix build 3 years ago
src matrix_sdk: bump to latest commit 3 years ago
.gitignore flake: setup flake.nix 3 years ago
.lohr remove empty line from .lohr file 3 years ago
Cargo.lock matrix_sdk: bump to latest commit 3 years ago
Cargo.toml matrix_sdk: bump to latest commit 3 years ago
README.md README: switch to markdown format 3 years ago
flake.lock flake: setup flake.nix 3 years ago
flake.nix matrix_sdk: bump to latest commit 3 years ago

README.md

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:
  - name: nginx.service
    filter: "\\[warn\\] .*"

Then run the bot:

cargo run -- --config config.yaml

Contributing

I accept contributions via GitHub Pull Requests and GitLab Merge Requests.

Sending patches by mail

You can also send patches to ~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'