diff --git a/src/config.ts b/src/config.ts index b85890b..768af67 100644 --- a/src/config.ts +++ b/src/config.ts @@ -57,4 +57,42 @@ interface IConfig { }; } -export default config; +const defaultConfig: IConfig = { + homeserverUrl: "http://localhost:8008", + accessToken: "NONE_PROVIDED", + pantalaimon: { + use: false, + username: "", + password: "", + }, + dataPath: "/data/storage", + autojoin: false, + autojoinOnlyIfManager: false, + managementRoom: "!noop:example.org", + verboseLogging: false, + logLevel: "INFO", + syncOnStartup: true, + verifyPermissionsOnStartup: true, + noop: false, + protectedRooms: [], + fasterMembershipChecks: false, + automaticallyRedactForReasons: ["spam", "advertising"], + protectAllJoinedRooms: false, + banListServer: { + enabled: false, + bind: "0.0.0.0", + port: 5186, + }, + commands: { + allowNoPrefix: false, + additionalPrefixes: [], + }, + + // Needed to make the interface happy. + RUNTIME: { + client: null, + }, +}; + +const finalConfig = Object.assign({}, defaultConfig, config); +export default finalConfig;