2019-04-08 15:32:22 -04:00
|
|
|
module.exports = {
|
2019-04-09 09:13:09 -04:00
|
|
|
'gitter': {
|
|
|
|
'token': process.env.GITTER_TOKEN,
|
2019-04-09 09:15:49 -04:00
|
|
|
"room": "status-im/gitter-bridge",
|
2019-04-09 09:13:09 -04:00
|
|
|
},
|
|
|
|
'status': {
|
|
|
|
"provider": "ws://localhost:8546",
|
|
|
|
"privateKey": process.env.STATUS_PRIVKEY,
|
2019-04-09 09:15:49 -04:00
|
|
|
"room": "#gitter-bridge",
|
2019-04-10 13:23:33 -04:00
|
|
|
"replace": (username, msg) => {
|
|
|
|
if(username !== "embarkbot_gitlab") return msg;
|
|
|
|
return msg.replace(/^\*embarkbot_gitlab@gitter\* (.+?@discord) (.*)$/, "*$1* $2")
|
|
|
|
}
|
2019-04-09 09:13:09 -04:00
|
|
|
}
|
2019-04-08 15:32:22 -04:00
|
|
|
}
|