err-elizabot

a classic electronic shrink for the chatbot err
git clone https://git.ce9e.org/err-elizabot.git

commit
57b3c0a1918a592553dac034c2aaa0864f21d9a3
parent
34ae961688815e3300f126f4af0d0dc6aacebe47
Author
Tobias Bengfort <tobias.bengfort@gmx.net>
Date
2016-05-24 06:42
use readline for input if available

Diffstat

M eliza.py 5 +++++

1 files changed, 5 insertions, 0 deletions


diff --git a/eliza.py b/eliza.py

@@ -11,6 +11,11 @@ last revised: 24 May 2016"""
   11    11 import re
   12    12 import random
   13    13 
   -1    14 try:
   -1    15     import readline
   -1    16 except ImportError:
   -1    17     pass
   -1    18 
   14    19 REFLECTIONS = {
   15    20     'am': 'are',
   16    21     'was': 'were',