Skip to content

Client Console

Keith Sterling edited this page Feb 26, 2019 · 6 revisions

The console client is found in the module

programy.clients.console.ConsoleBotClient

To run the Facebook client, you can use the shell script in Y-Bot scripts folder

./y-bot.sh

Or you can use the command line

python3 -m programy.clients.events.console.client --config <PATH TO CONFIG> --cformat yaml --logging <PATH TO LOGGING>

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