1
0
Fork 0

Merge branch 'master' of cybre.tech:chr/matrix-appservice-minecraft

This commit is contained in:
khr 2020-04-03 06:39:26 +00:00
commit 2361252b37
1 changed files with 2 additions and 0 deletions

View File

@ -140,6 +140,7 @@ class Appservice:
"PUT", "PUT",
"/presence/" + user_id + "/status", "/presence/" + user_id + "/status",
content={"presence":"online"}, content={"presence":"online"},
query_params={"user_id": user_id},
headers={"Content-Type": "application/json"}, headers={"Content-Type": "application/json"},
) )
elif msg["action"] == "left": elif msg["action"] == "left":
@ -148,6 +149,7 @@ class Appservice:
"PUT", "PUT",
"/presence/" + user_id + "/status", "/presence/" + user_id + "/status",
content={"presence":"offline"}, content={"presence":"offline"},
query_params={"user_id": user_id},
headers={"Content-Type": "application/json"}, headers={"Content-Type": "application/json"},
) )
if "msg" in msg: if "msg" in msg: