Demo Bot: first proof of concept.
This commit is contained in:
@ -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 {
|
||||
|
@ -5,7 +5,10 @@ interface ProsodyFilePaths {
|
||||
log: string
|
||||
config: string
|
||||
data: string
|
||||
bots: string
|
||||
bots: {
|
||||
dir: string
|
||||
demobot: string
|
||||
}
|
||||
modules: string
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user