From 9443fed29eaedd1356a0194ec610e519626b728f Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Mon, 11 Feb 2019 01:12:08 +0100 Subject: [PATCH] post meaningful text --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index f67347d..1ffdbfd 100755 --- a/main.py +++ b/main.py @@ -47,7 +47,8 @@ class WWMBotForwarder(BaseHTTPRequestHandler): """ length = int(self.headers.get('Content-Length')) data = json.loads(self.rfile.read(length).decode()) - self.server.matrix_room.send_text(f'Got a request on {self.path}: {data}') + name, url = data['name'], data['url'] + self.server.matrix_room.send_text(f'Nouvelle demande de {name}: {url}') self.ret_ok() def ret_ok(self):