Skip to content

Legobot/legos.generic

Repository files navigation

legos.generic

Travis

Usage

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.

Installation

You can install locally (by cloning the repo) or from PyPi

Local

cd into the current directory pip3 install .

From PyPi

pip3 install legos.lego_name

Add to Legobot

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.

Tweaking

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

Contributing

As always, pull requests are welcome.

Contributing guidelines are outlined in the main Legobot Repo.

This repo uses (develop branch|feature branches|direct commits).

Releases

No releases published

Packages

No packages published

Languages