Commit graph

93 commits

Author SHA1 Message Date
HgO
96b22672d6 remove common log level 2024-04-17 15:56:43 +02:00
HgO
6ae3355f3c add more tests 2024-04-17 14:59:37 +02:00
HgO
27828ec3c7 fix linting 2024-01-22 11:50:09 +01:00
HgO
d9e22c6ea8 fix linting and improve logs 2024-01-22 11:43:11 +01:00
HgO
86aa44b260 implement matrix client failover 2024-01-22 11:35:13 +01:00
HgO
a08cd69171 handle generic exceptions 2023-01-29 21:44:24 +01:00
HgO
fbbd66edd7 Resolve "Renvoyer l'alerte quand on reçoit une RoomSendError" 2022-11-25 18:59:32 +00:00
HgO
17f24cb086 create custom logger to log at debug level webhook requests 2022-10-29 14:18:16 +02:00
HgO
6e589d4e23 handle RoomSendError response event after sending message to Matrix 2022-10-26 18:02:23 +02:00
HgO
b3003d8287 Merge branch '3-afficher-le-texte-des-emojis' into 'master'
Resolve "Afficher le texte des emojis"

Closes #3

See merge request Neutrinet/matrix-alertbot!3
2022-10-26 15:26:16 +00:00
HgO
74a4f3152c display text next to emojis 2022-10-26 17:15:13 +02:00
HgO
8b044523d5 fix incorrect permissions on token file 2022-10-26 17:12:41 +02:00
HgO
229db52537 add tests for key verification callbacks 2022-10-26 15:53:45 +02:00
HgO
425fcd3a7c bugfix 2022-10-26 14:53:29 +02:00
HgO
004a575c81 verify devices with emojis 2022-10-26 13:25:47 +02:00
HgO
57a704cd94 optional config id 2022-08-27 13:46:58 +02:00
HgO
d43ea389af migrate to pyproject.toml and publish to pypi 2022-08-14 15:20:49 +02:00
HgO
dee0ba6c81 setup docker deployment 2022-08-08 16:43:05 +02:00
HgO
264687a62d add tests for chat functions 2022-08-08 12:38:09 +02:00
HgO
6fd687cc90 add force option for update silence 2022-08-08 11:26:08 +02:00
HgO
f284486570 fix silence update 2022-08-08 02:03:25 +02:00
HgO
1555359e03 add logs 2022-08-08 01:59:09 +02:00
HgO
3705f6c219 fix ack existing silence 2022-08-08 01:44:08 +02:00
HgO
4e50ddf5bb useless cache removal 2022-08-08 00:36:39 +02:00
HgO
f381eac689 auto extend silence without duration 2022-08-08 00:28:36 +02:00
HgO
6781bc82fa render alert from jinja2 templates 2022-07-28 17:39:47 +02:00
HgO
bbcc0cc427 webhook accept room_id param; config define list of allowed rooms ; check if duration is positive in command 2022-07-28 14:37:23 +02:00
HgO
6896908432 handle optional alert job 2022-07-28 11:11:50 +02:00
HgO
810f9e2ceb fix remove reaction 2022-07-28 10:35:11 +02:00
HgO
ffd1c898d6 handle invalid duration and silence expired exceptions 2022-07-27 21:35:30 +02:00
HgO
978f0adc61 fix silence status 2022-07-27 21:28:57 +02:00
HgO
a1f701d2ba change max duration to 10 years 2022-07-27 21:11:11 +02:00
HgO
5ed5a4aa08 refactor to handle one alert per matrix event 2022-07-26 19:33:04 +02:00
HgO
8dd72a6416 improve error log 2022-07-17 00:29:36 +02:00
HgO
073cde37db fix silence ID caching 2022-07-17 00:21:44 +02:00
HgO
fba263afe8 handle exception in command creation 2022-07-16 23:20:25 +02:00
HgO
76b8ead9d7 refactor command to use subclass per command 2022-07-16 23:08:12 +02:00
HgO
c4752d8192 rename /alert endpoint to /alerts 2022-07-12 18:22:11 +02:00
HgO
fa39283bf4 add health endpoint 2022-07-12 18:19:52 +02:00
HgO
cd196c2143 improve error message 2022-07-12 00:29:55 +02:00
HgO
1e006cb66f parse duration once in command and handle exceptions 2022-07-12 00:27:17 +02:00
HgO
6350da94f4 improve error message 2022-07-11 23:45:15 +02:00
HgO
19d42fc1af don't send message for nothing 2022-07-11 23:43:27 +02:00
HgO
bb14e9dda8 fix error message 2022-07-11 23:41:30 +02:00
HgO
7a273f5072 send a message when alert were not fonud 2022-07-11 23:33:35 +02:00
HgO
2359f6ca77 add unit tests for webhook, alert and missing cache 2022-07-11 23:18:57 +02:00
HgO
80abff5c6c close cache on exit 2022-07-10 18:09:25 +02:00
HgO
0048fb84ea check if entry is in cache 2022-07-10 15:11:25 +02:00
HgO
9ee0064153 add support for reaction removal 2022-07-10 14:59:21 +02:00
HgO
69b5aa20b1 start support for redaction events 2022-07-10 14:53:19 +02:00