diff options
author | Alex Auvolat <alex@adnab.me> | 2016-04-25 10:58:34 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2016-04-25 10:58:34 +0200 |
commit | 647dce75ba7483b8fa0b64ef64ecaab70932b769 (patch) | |
tree | 1c667306d5e7f1aec6f635c63cbedd6945bafa74 /ircbot.py | |
parent | a4cc8d56a97968f4d994cf62c9d81aa68c3604aa (diff) | |
download | text-rnn-647dce75ba7483b8fa0b64ef64ecaab70932b769.tar.gz text-rnn-647dce75ba7483b8fa0b64ef64ecaab70932b769.zip |
Batch size changes, mostly
Diffstat (limited to 'ircbot.py')
-rwxr-xr-x | ircbot.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |