From 647dce75ba7483b8fa0b64ef64ecaab70932b769 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 25 Apr 2016 10:58:34 +0200 Subject: Batch size changes, mostly --- ircbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ircbot.py') diff --git a/ircbot.py b/ircbot.py index ac329eb..7477691 100755 --- a/ircbot.py +++ b/ircbot.py @@ -107,7 +107,7 @@ class IRCClient(SimpleIRCClient): else: # feed phrase to bot prob, = pred_f(self.str2data(s0+'\n')) - if self.nick in msg: + if any(x in msg.lower() for x in [self.nick, 'frigal']): self.pred_until(pred_f, prob, '\t') prob, = pred_f(self.str2data(nick+': ')) rep = nick + ': ' + self.pred_until(pred_f, prob) -- cgit v1.2.3