Skip to content

Client Console

Keith Sterling edited this page Jan 9, 2019 · 6 revisions

The console client is found in the module

programy.clients.console.ConsoleBotClient

To execute the console client, use a derivative of the following script

#! /bin/sh
clear
export PYTHONPATH=../../src:../../libs/MetOffer-1.3.2:.
python3 ../../src/programy/clients/console.py --config ./config.yaml --cformat yaml --logging ./logging.yaml 

This will create a command line client which will display something similar to the followng

Loading, please wait...
No bot root argument set, defaulting to [.]
Y-Bot version 0.0.1, initiated March 14, 2017
Hi, how can I help you today?
>>> Hello
Greetings!
>>> 

You can interact with the client by typing in questions at the >>> prompt

The console is configured using the option described in Console Configuration

Clone this wiki locally