Updated to use json config
This commit is contained in:
parent
976da7257b
commit
fe70598399
6
index.ts
6
index.ts
@ -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
7
tsconfig.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"resolveJsonModule": true,
|
||||
"esModuleInterop": true
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user