Demo Bot: Complete code refactoring. WIP.

This commit is contained in:
John Livingston
2021-12-08 15:29:34 +01:00
parent 2c72f3bf2f
commit 42988a5d04
9 changed files with 218 additions and 159 deletions

View File

@ -206,7 +206,7 @@ async function getProsodyConfig (options: RegisterServerOptions): Promise<Prosod
config.useDemoBot(componentSecret)
bots.demobot = demoBotUUIDs
demoBotContentObj = JSON.stringify({
rooms: demoBotUUIDs.map((uuid) => `${uuid}@room.${prosodyDomain}`),
rooms: demoBotUUIDs,
service: 'xmpp://127.0.0.1:' + externalComponentsPort,
domain: 'demobot.' + prosodyDomain,
mucDomain: 'room.' + prosodyDomain,