|
|
@ -5,9 +5,9 @@ const yaml = require('js-yaml');
|
|
|
|
|
|
|
|
|
|
|
|
const config = yaml.safeLoad(fs.readFileSync('config.yaml'));
|
|
|
|
const config = yaml.safeLoad(fs.readFileSync('config.yaml'));
|
|
|
|
const matrixclient = sdk.createClient({
|
|
|
|
const matrixclient = sdk.createClient({
|
|
|
|
baseUrl: config.baseurl,
|
|
|
|
baseUrl: config.matrix.baseurl,
|
|
|
|
accessToken: config.accesstoken,
|
|
|
|
accessToken: config.matrix.accesstoken,
|
|
|
|
userId: config.userid
|
|
|
|
userId: config.matrix.userid
|
|
|
|
});
|
|
|
|
});
|
|
|
|
const ssh = new node_ssh();
|
|
|
|
const ssh = new node_ssh();
|
|
|
|
|
|
|
|
|
|
|
|