diff --git a/src/discordas.ts b/src/discordas.ts index acd59b523539cd65e636a52d2543bac6fbfa803a..f1bc1d794aee07352a3490fe06eaaeb54dd9d500 100644 --- a/src/discordas.ts +++ b/src/discordas.ts @@ -135,6 +135,12 @@ async function run() { } config.applyConfig(yaml.safeLoad(fs.readFileSync(configPath, "utf8"))); Log.Configure(config.logging); + if (config.database.roomStorePath || config.database.userStorePath) { + log.error("The keys 'roomStorePath' and/or 'userStorePath' is still defined in the config. " + + "Please see docs/bridge-migrations.md on " + + "https://github.com/Half-Shot/matrix-appservice-discord/"); + throw Error("Bridge has legacy configuration options and is unable to start"); + } const registration = yaml.safeLoad(fs.readFileSync(registrationPath, "utf8")) as IAppserviceRegistration; setupLogging(); const appservice = new Appservice({