Demo Bot: first proof of concept.

This commit is contained in:
John Livingston
2021-12-07 13:14:01 +01:00
parent f8ce4e6583
commit 978ee83eee
9 changed files with 307 additions and 25 deletions

View File

@ -291,13 +291,13 @@ class ProsodyConfigContent {
}
useDemoBot (componentSecret: string): void {
const demoBot = new ProsodyConfigComponent('demobot.' + this.prosodyDomain)
demoBot.set('component_secret', componentSecret)
const demoBotComponent = new ProsodyConfigComponent('demobot.' + this.prosodyDomain)
demoBotComponent.set('component_secret', componentSecret)
// If we want the bot to be moderator, should do the trick:
// this.global.add('admins', 'demobot.' + this.prosodyDomain)
this.externalComponents.push(demoBot)
this.externalComponents.push(demoBotComponent)
}
setLog (level: ProsodyLogLevel, syslog?: ProsodyLogLevel[]): void {

View File

@ -5,7 +5,10 @@ interface ProsodyFilePaths {
log: string
config: string
data: string
bots: string
bots: {
dir: string
demobot: string
}
modules: string
}