No description, website, or topics provided.
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Added updated gitignore Apr 20, 2016
LICENSE Initial commit Apr 20, 2016
README.md Add some useful documentation Sep 20, 2016
broize.py Add some useful documentation Sep 20, 2016
config.py Initial tests passing Apr 20, 2016
requirements.txt Initial load Apr 20, 2016
test_broize.py First bug omg; use normal string tokenization to avoid passing throug… May 12, 2016

README.md

Brobot

Sample code for a tutorial on bot creation in Python: Chatbot Fundamentals: An interactive guide to writing bots in Python

Installation

Requires Python 2.7 or Python 3

Set up and activate a virtualenv

python virtualenv venv

. venv/bin/activate

Install the Python-level dependencies

pip install -r requirements.txt

Run the command-line interface

You can use the script as a library by calling broback(sentence) directly, or call it from the command line. Say something custom as an argument to the script, or the program will just use a default sentence:

python broize.py "I am an engineer"

Note that this bot is extremely simple as it's been optimized for use as a training tool. It's not very interesting by itself!

License

Copyright (c) 2016 Liza Daly / Licensed under the MIT license.