Guilhem Saurel
4506632c6f
python 3.9
2021-04-12 21:05:20 +02:00
Guilhem Saurel
aad02887f1
Merge pull request #1 from homeworkprod-forks/main
...
Simplify code
2021-01-03 16:40:25 +01:00
Jochen Kupperschmidt
00f47f99a9
Unify use of single quotes for non-docstring string literals
2020-12-27 14:57:14 +01:00
Jochen Kupperschmidt
78b9533e2b
Exit early after each request check
...
Keeps the "happy path" on the function's base indentation level.
Avoids carrying status and return value variables, pre-filled in
anticipation of an error, along.
2020-12-27 14:52:07 +01:00
Jochen Kupperschmidt
139ec1670c
Use aiohttp.web.json_response()
...
Avoids explicit setting of JSON content type, handles serialization to
JSON.
2020-12-27 14:43:01 +01:00
Jochen Kupperschmidt
54baf29d51
Extract function to send message
...
Merges duplicated code.
2020-12-27 14:42:58 +01:00
Jochen Kupperschmidt
cf054631e8
Extract room ID into variable
2020-12-27 14:07:04 +01:00
Guilhem Saurel
6c138a65b4
try another login on connection lost
2020-07-28 21:56:05 +02:00
Guilhem Saurel
887dc95e3d
handle ill-formed JSON
2020-06-08 09:59:51 +02:00
Guilhem Saurel
9883782f3a
remove the need for www
2020-06-07 10:31:21 +02:00
Guilhem Saurel
9615cdf3c7
traefik v2
2020-05-13 00:29:57 +02:00
Guilhem Saurel
ce83079d59
markdown: extra
...
https://python-markdown.github.io/extensions/extra/
To get <pre> tags on fenced code
2020-04-20 19:18:57 +02:00
Guilhem Saurel
38e814c956
format readme
2020-03-14 18:10:32 +01:00
Guilhem Saurel
f11af8de16
update dev instructions
2020-03-14 18:09:18 +01:00
Guilhem Saurel
84c82ca931
update license
2020-03-14 17:28:20 +01:00
Guilhem Saurel
d291dc0086
new test room
2020-03-14 17:28:18 +01:00
Guilhem Saurel
4b1acd874a
markdown
...
ref https://matrix.org/docs/spec/client_server/r0.6.0#m-room-message-msgtypes
2020-03-14 17:26:57 +01:00
Guilhem Saurel
fc30487ead
HTTPStatuses
2020-03-11 10:08:13 +01:00
Guilhem Saurel
a14b0c9574
details
2020-03-11 10:06:53 +01:00
Guilhem Saurel
02e5a9dfc7
pre-commit
2020-03-08 22:15:48 +01:00
Guilhem Saurel
b621d8ed5a
[Docker] use debian.
2020-03-08 20:39:43 +01:00
Guilhem Saurel
bc6171edac
[Docker] pycryptodome requires gcc & libc-dev
...
And the alpine py3-pycryptodome package installs pycryptodomex, which is
not compatible with matrix-nio.
2020-03-08 20:24:50 +01:00
Guilhem Saurel
7a8084170c
matrix-nio already depends on aiohttp
2020-03-08 16:04:24 +01:00
Guilhem Saurel
b2eab91475
python 3.8
2020-03-08 16:00:44 +01:00
Guilhem Saurel
cc03611bcb
cleaner aiohttp use
...
Thanks a lot @djanos !
2020-03-08 15:58:29 +01:00
Guilhem Saurel
2c97fa3d3f
matrix-client → matrix-nio
2020-02-16 13:56:29 +01:00
Guilhem Saurel
a6fad80ca7
http.server → aiohttp.web
2020-02-14 19:18:51 +01:00
Guilhem Saurel
1b31e7bba9
update readme, doc, and status / return codes
2019-03-06 16:47:35 +01:00
Guilhem Saurel
7f466261d1
README: add missing matrix room ID in example
2019-02-24 22:09:59 +01:00
Guilhem Saurel
0f85cc1c9b
update DNS
2019-02-17 12:44:00 +01:00
Guilhem Saurel
2a3c0e4a4f
update docs
2019-02-17 12:31:49 +01:00
Guilhem Saurel
3f4bd2b067
update docs
2019-02-17 12:29:50 +01:00
Guilhem Saurel
bffc7002c1
rename {main -> matrix_webhook}.py
2019-02-17 12:15:27 +01:00
Guilhem Saurel
01a083c693
rename project into Matrix Webhook
2019-02-17 11:46:00 +01:00
Guilhem Saurel
6d05f6bb94
allow dynamical room join
2019-02-17 11:01:40 +01:00
Guilhem Saurel
df0c6f5759
valid json
2019-02-13 01:13:28 +01:00
Guilhem Saurel
4fcf956bca
doc details
2019-02-13 01:06:58 +01:00
Guilhem Saurel
675f3855f0
genericity: send any text, to any room
2019-02-13 01:04:32 +01:00
Guilhem Saurel
c54e5da19d
genericity: send any text
2019-02-13 00:59:54 +01:00
Guilhem Saurel
09cb1566bf
reminder…
2019-02-11 02:02:35 +01:00
Guilhem Saurel
9d3c4bb990
details
2019-02-11 01:56:50 +01:00
Guilhem Saurel
cde44a74df
clean
2019-02-11 01:54:18 +01:00
Guilhem Saurel
1fcda5d570
instructions
2019-02-11 01:33:48 +01:00
Guilhem Saurel
370f41407e
no need for pipfiles…
2019-02-11 01:31:32 +01:00
Guilhem Saurel
5139c2d612
dockerize
2019-02-11 01:29:55 +01:00
Guilhem Saurel
9443fed29e
post meaningful text
2019-02-11 01:12:11 +01:00
Guilhem Saurel
b062c2694b
decode json from the HTTP request, and post it to the room
2019-02-11 01:00:53 +01:00
Guilhem Saurel
496108dc6e
add a matrix client to the server
2019-02-11 00:38:08 +01:00
Guilhem Saurel
781e4fd78c
basic http server
2019-02-10 22:33:27 +01:00
Guilhem Saurel
bfc7a13046
add matrix-python-sdk requirement
2019-02-10 22:05:00 +01:00