Sample code for a tutorial on bot creation in Python: Chatbot Fundamentals: An interactive guide to writing bots in Python
Requires Python 2.7 or Python 3
python virtualenv venv
. venv/bin/activate
pip install -r requirements.txt
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!
Copyright (c) 2016 Liza Daly / Licensed under the MIT license.