Change min duck messages to 40, change chance back to 5%

This commit is contained in:
jesopo 2019-05-03 16:47:56 +01:00
parent 8c8205522e
commit d999548020

View file

@ -29,10 +29,10 @@ class Module(ModuleManager.BaseModule):
if ducks_enabled and not channel.duck_active:
channel.duck_lines += 1
min_lines = channel.get_setting("ducks-min-messages", 20)
min_lines = channel.get_setting("ducks-min-messages", 40)
if channel.duck_lines >= min_lines:
show_duck = random.SystemRandom().randint(1, 10) == 1
show_duck = random.SystemRandom().randint(1, 20) == 1
if show_duck:
channel.duck_lines = 0