Commit graph

21 commits

Author SHA1 Message Date
Bruno BELANYI 87604b38d3 bot: apply service filters 2021-04-10 02:06:02 +02:00
Bruno BELANYI ad420dc874 config: store and parse 'filter' as regex 2021-04-10 02:05:01 +02:00
Bruno BELANYI 54f67887aa config: add optional filter option for units
This allows the user to write:

```yaml
units:
- foo.service
- bar.service
- name: baz.service
  filter: "^Error: .*$"
```

So a unit can be provided as a string, or as a map which contains both
`name` and `filter`.
2021-04-10 02:05:01 +02:00
Bruno BELANYI f22416adac config: extract Config into its own file 2021-04-10 02:05:01 +02:00
Antoine Martin 6f155bba0b remove empty line from .lohr file 2021-04-09 20:30:12 +02:00
Antoine Martin 6c0258caa9 add lohr file 2021-04-09 19:41:26 +02:00
Antoine Martin 21921a6729 cargo: bump dependencies
tokio v1.2.0
2021-02-07 19:49:24 +01:00
Antoine Martin ff9f287405 README: setup 2021-02-07 19:13:44 +01:00
Antoine Martin dc85ff17e5 bot: watch journald and send events 2021-02-07 19:02:24 +01:00
Antoine Martin 813ea9848a autojoin: filter room based on ID 2021-02-02 08:25:01 +01:00
Antoine Martin 57e783e8a3 bot: comments 2021-02-02 07:37:48 +01:00
Antoine Martin 3bdee6ed89 split into files 2021-02-02 07:28:14 +01:00
Antoine Martin 8beae909b8 refacto into Bot struct 2021-02-02 07:11:16 +01:00
Antoine Martin b4caf4a98b format imports 2021-02-02 06:43:23 +01:00
Antoine Martin 28c22ffad7 document configuration 2021-02-02 06:39:21 +01:00
Antoine Martin 3f08ec6b26 use anyhow/thiserror for error handling 2021-02-02 06:31:10 +01:00
Antoine Martin 65bad5849d yaml > json 2021-02-02 06:12:29 +01:00
Antoine Martin ab08f6e0f3 use single config file 2021-02-02 06:04:06 +01:00
Antoine Martin e6e41b9ad2 reuse previous session information 2021-02-02 05:37:43 +01:00
Antoine Martin 567fc1674e add some basic TODOs 2021-02-02 04:52:43 +01:00
Antoine Martin 1679ccb759 Initial commit 2021-02-02 04:20:27 +01:00