From e2199c289e41c1488ac64d079a0a8a0113aaad04 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Mon, 27 Feb 2017 00:18:41 +0100 Subject: [PATCH] add config variable for matrix username --- src/matrix.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix.coffee b/src/matrix.coffee index 742f0e2..d4b98dc 100644 --- a/src/matrix.coffee +++ b/src/matrix.coffee @@ -134,7 +134,7 @@ class Matrix extends Adapter @robot.logger.info "starting matrix adapter" client = sdk.createClient(process.env.HUBOT_MATRIX_HOST_SERVER || 'https://matrix.org') client.login 'm.login.password', - user: @robot.name + user: process.env.HUBOT_MATRIX_USER || @robot.name password: process.env.HUBOT_MATRIX_PASSWORD , (err, data) =>