Change duck-spawn change to 10% per message after 20 messages

This commit is contained in:
jesopo 2019-05-03 16:07:49 +01:00
parent 8ac93d57f3
commit b7e14148bb

View file

@ -32,7 +32,7 @@ class Module(ModuleManager.BaseModule):
min_lines = channel.get_setting("ducks-min-messages", 20)
if channel.duck_lines >= min_lines:
show_duck = random.SystemRandom().randint(1, 20) == 1
show_duck = random.SystemRandom().randint(1, 10) == 1
if show_duck:
self._trigger_duck(channel)