Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/bot/test_brain.py
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2009-12-25 15:34:56 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2009-12-25 15:34:56 (GMT)
commit6e82c5964e31f3cc937911069709af9830071338 (patch)
tree13e2b5e82fcd64eb0ea54aafb31df9421343f3cd /bot/test_brain.py
parentda69d3983184b35350ff6634ca9e00faaa631d1a (diff)
Use only one directory level for sources
Diffstat (limited to 'bot/test_brain.py')
-rwxr-xr-xbot/test_brain.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/bot/test_brain.py b/bot/test_brain.py
new file mode 100755
index 0000000..32dc9b0
--- /dev/null
+++ b/bot/test_brain.py
@@ -0,0 +1,10 @@
+#!/usr/bin/env python
+#coding=utf-8
+
+import aiml
+import os.path
+
+k = aiml.Kernel()
+k.loadBrain("sara.brn")
+
+while True: print k.respond(raw_input("Pregunta > "))