Commit 4f2fb2b6 authored by kaiyou's avatar kaiyou

Use inplace inserted arguments for the matrix account

parent 56f5e36c
Pipeline #156 passed with stage
in 54 seconds
...@@ -9,9 +9,9 @@ def stdout(context): ...@@ -9,9 +9,9 @@ def stdout(context):
print(context) print(context)
def matrix_room(context, account, roomid, message): def matrix_room(context, hs, token, roomid, message):
""" Send a message to a given Matrix room """ Send a message to a given Matrix room
""" """
matrix = matrix_client.MatrixHttpApi(account["hs"], token=account["token"]) matrix = matrix_client.MatrixHttpApi(hs, token=token)
message = util.render(message, context) message = util.render(message, context)
matrix.send_message(roomid, message) matrix.send_message(roomid, message)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment