From 90be2d185577d4c3d4401025bdf8718458701866 Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Tue, 3 May 2011 22:13:49 -0500 Subject: [PATCH] Markov: trying a simpler form of shut up check --- modules/Markov.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/Markov.py b/modules/Markov.py index ff22866..ac8d342 100644 --- a/modules/Markov.py +++ b/modules/Markov.py @@ -284,9 +284,9 @@ class Markov(Module): if rdelta.years == 0 and rdelta.months == 0 and rdelta.days == 0 and rdelta.hours == 0 and rdelta.minutes == 0 and rdelta.seconds <= 29: last_30_sec_lines.append((nick,then)) - if len(last_30_sec_lines) >= 20: + if len(last_30_sec_lines) >= 15: lines_i_said = len(filter(lambda (a,b): a == '.self.said.', last_30_sec_lines)) - if lines_i_said * 100 / len(last_30_sec_lines) >= 45: + if lines_i_said >= 8: self.shut_up = True targets = self._get_chatter_targets() for t in targets: