summaryrefslogtreecommitdiff
path: root/ircbot.py
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2016-04-25 10:58:34 +0200
committerAlex Auvolat <alex@adnab.me>2016-04-25 10:58:34 +0200
commit647dce75ba7483b8fa0b64ef64ecaab70932b769 (patch)
tree1c667306d5e7f1aec6f635c63cbedd6945bafa74 /ircbot.py
parenta4cc8d56a97968f4d994cf62c9d81aa68c3604aa (diff)
downloadtext-rnn-647dce75ba7483b8fa0b64ef64ecaab70932b769.tar.gz
text-rnn-647dce75ba7483b8fa0b64ef64ecaab70932b769.zip
Batch size changes, mostly
Diffstat (limited to 'ircbot.py')
-rwxr-xr-xircbot.py2
1 files changed, 1 insertions, 1 deletions
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)