Skip to content

Config_Client_Bots

Keith Sterling edited this page Feb 21, 2019 · 3 revisions

#Bot Selection

Each client has the option to load one or more bots into itself and then the option to decide which bot to select to answer a question.

To use a single bot, name the bot, and then within the config file, there should be a config section of the same name which contains bot configuration as follows

console:
  bot:  bot
  
bot:

If you want to load more then one bot then you list them using the Yaml bar '|' configuration, there should then be a bot configuration element in your config file for each bot listed as follows.

In this instance we have chosen to use the Round Robin Selector, but you can write your own, or use one of the other system defined classes

client:
  bot:  |
    bot1
    bot2
  bot_selector: programy.clients.client.RoundRobinBotSelector
  
bot1:
  # Bot 1 configuration

bot2:
  # Bot 2 configuration
                   
Clone this wiki locally