Updated to use json config

This commit is contained in:
Chris Plaatjes 2023-02-22 18:00:25 -05:00
parent 976da7257b
commit fe70598399
2 changed files with 10 additions and 3 deletions

View File

@ -6,10 +6,10 @@ import {
} from "matrix-bot-sdk";
//import config data
const config = require("./config/config.json");
import settings from "./config/config.Dev.json";
const homeserverUrl = config.TeleTokConf.matrixAddress;
const accessToken = config.TeleTokConf.accessToken;
const homeserverUrl = settings.matrixAddress;
const accessToken = settings.accessToken;
const storage = new SimpleFsStorageProvider("./config/bot.json");
const cryptoProvider = new RustSdkCryptoStorageProvider("./config/crypto");

7
tsconfig.json Normal file
View File

@ -0,0 +1,7 @@
{
"compilerOptions": {
"module": "commonjs",
"resolveJsonModule": true,
"esModuleInterop": true
}
}