Bots settings (WIP).

This commit is contained in:
John Livingston
2021-12-07 10:29:20 +01:00
parent 7bb444af2c
commit 62456aead1
7 changed files with 132 additions and 19 deletions

View File

@ -50,6 +50,10 @@ export async function diagProsody (test: string, options: RegisterServerOptions)
}
result.messages.push(`Room content will be saved for '${wantedConfig.logExpiration.value}'`)
if (wantedConfig.bots.demo) {
result.messages.push(`The Demo bot is active for videos: ${wantedConfig.bots.demo.join(', ')}`)
}
await fs.promises.access(filePath, fs.constants.R_OK) // throw an error if file does not exist.
result.messages.push(`The prosody configuration file (${filePath}) exists`)
const actualContent = await fs.promises.readFile(filePath, {