diff --git a/index.ts b/index.ts index f7e4943..d3802d9 100644 --- a/index.ts +++ b/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"); diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..445cc2a --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,7 @@ +{ + "compilerOptions": { + "module": "commonjs", + "resolveJsonModule": true, + "esModuleInterop": true + } + } \ No newline at end of file