This lego is a generic, config-driven lego. Instead of writing the logic of the listening for and handling for basic text triggered responses, this lego accomplishes that with a config file. See the example config As you'll see in the example chatbot file you can specify the config file's location on invocation. If the lego will assume the config is located in the directory you are running the chatbot from and is named config.py.
You can install locally (by cloning the repo) or from PyPi
cd into the current directory
pip3 install .
pip3 install legos.lego_name
This is a Lego designed for use with Legobot, so you'll get Legobot along with this.
To deploy it, import the package and add it to the active legos. See the default chatbot included with this repo as an example.
While you can use this one as-is, you could also add a localized version to your Legobot deployment by grabbing lego_name.py and deploying it as a local module. Example of a Legobot instance with local modules
As always, pull requests are welcome.
Contributing guidelines are outlined in the main Legobot Repo.
This repo uses (develop branch|feature branches|direct commits).