post meaningful text
This commit is contained in:
parent
b062c2694b
commit
9443fed29e
1 changed files with 2 additions and 1 deletions
3
main.py
3
main.py
|
@ -47,7 +47,8 @@ class WWMBotForwarder(BaseHTTPRequestHandler):
|
||||||
"""
|
"""
|
||||||
length = int(self.headers.get('Content-Length'))
|
length = int(self.headers.get('Content-Length'))
|
||||||
data = json.loads(self.rfile.read(length).decode())
|
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()
|
self.ret_ok()
|
||||||
|
|
||||||
def ret_ok(self):
|
def ret_ok(self):
|
||||||
|
|
Loading…
Reference in a new issue