Reset duck_lines to 0 when a duck has spawned

This commit is contained in:
jesopo 2019-05-03 16:26:35 +01:00
parent b7e14148bb
commit c89742a7e7

View file

@ -35,6 +35,7 @@ class Module(ModuleManager.BaseModule):
show_duck = random.SystemRandom().randint(1, 10) == 1
if show_duck:
channel.duck_lines = 0
self._trigger_duck(channel)
@utils.hook("received.join")