add config variable for matrix username

This commit is contained in:
rnhmjoj 2017-02-27 00:18:41 +01:00
parent 32076079c6
commit e2199c289e
No known key found for this signature in database
GPG Key ID: 362BB82B7E496B7C

View File

@ -134,7 +134,7 @@ class Matrix extends Adapter
@robot.logger.info "starting matrix adapter" @robot.logger.info "starting matrix adapter"
client = sdk.createClient(process.env.HUBOT_MATRIX_HOST_SERVER || 'https://matrix.org') client = sdk.createClient(process.env.HUBOT_MATRIX_HOST_SERVER || 'https://matrix.org')
client.login 'm.login.password', client.login 'm.login.password',
user: @robot.name user: process.env.HUBOT_MATRIX_USER || @robot.name
password: process.env.HUBOT_MATRIX_PASSWORD password: process.env.HUBOT_MATRIX_PASSWORD
, (err, data) => , (err, data) =>