|
|
|
@ -11,6 +11,8 @@ global.matrixClient = sdk.createClient({
|
|
|
|
|
userId: config.matrix.userid
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const db = new sqlite3.Database(config.database);
|
|
|
|
|
|
|
|
|
|
//captures unhandled rejections for easier debugging
|
|
|
|
|
process.on('unhandledRejection', (reason) => {
|
|
|
|
|
console.log('Reason: ' + reason);
|
|
|
|
|