Commit 5f38718d authored by kaiyou's avatar kaiyou

Switch notifiers to using resolved accounts from config

parent 825d454e
......@@ -3,9 +3,9 @@ from matrix_client import client as matrix_client
from amonit import util
def matrix_room(context, hs, token, roomid, message):
def matrix_room(context, account, roomid, message):
""" Send a message to a given Matrix room
matrix = matrix_client.MatrixHttpApi(hs, token=token)
matrix = matrix_client.MatrixHttpApi(account["hs"], token=account["token"])
message = util.render(message, context)
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