- commit
- 67de3f9fd02015f9fa41b5101a26298de6a238fa
- parent
- 1a8067d15946171176cd1e9f588046ab6081ce2e
- Author
- Guillaume BINET <gbin@gootz.net>
- Date
- 2012-06-05 16:26
ugly clash on name
Diffstat
| M | eliza.py | 2 | +- |
| M | elizaBot.py | 6 | ++---- |
2 files changed, 3 insertions, 5 deletions
diff --git a/eliza.py b/eliza.py
@@ -11,7 +11,7 @@ import string 11 11 import re 12 12 import random 13 1314 -1 class eliza:-1 14 class Eliza: 15 15 def __init__(self): 16 16 self.keys = map(lambda x:re.compile(x[0], re.IGNORECASE),gPats) 17 17 self.values = map(lambda x:x[1],gPats)
diff --git a/elizaBot.py b/elizaBot.py
@@ -1,17 +1,15 @@ 1 1 from botplugin import BotPlugin2 -1 from eliza import eliza-1 2 from eliza import Eliza 3 3 from jabberbot import botcmd 4 4 from utils import get_jid_from_message 5 5 6 6 __author__ = 'gbin' 7 7 8 8 class ElizaBot(BotPlugin):9 -1 eliza_daemon = eliza()-1 9 eliza_daemon = Eliza() 10 10 @botcmd 11 11 def eliza(self, mess, args): 12 12 """ El'cheapo shrink for you """ 13 13 args = args.strip() 14 14 return self.eliza_daemon.respond(args) 15 1516 -1 def callback_message(self, conn, mess):17 -1 pass