Markov.py: tweaking the shut up check, this has been pretty good for a while
This commit is contained in:
parent
70e1ee017f
commit
50fbbbfedd
@ -352,7 +352,7 @@ 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:
|
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))
|
last_30_sec_lines.append((nick,then))
|
||||||
|
|
||||||
if len(last_30_sec_lines) >= 15:
|
if len(last_30_sec_lines) >= 8:
|
||||||
lines_i_said = len(filter(lambda (a,b): a == '.self.said.', last_30_sec_lines))
|
lines_i_said = len(filter(lambda (a,b): a == '.self.said.', last_30_sec_lines))
|
||||||
if lines_i_said >= 8:
|
if lines_i_said >= 8:
|
||||||
self.shut_up = True
|
self.shut_up = True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user