duck_active should be when the duck spawns

This commit is contained in:
jesopo 2019-10-08 21:52:26 +01:00
parent 6ee2b6cf27
commit a43edd17ae

View file

@ -53,8 +53,8 @@ class Module(ModuleManager.BaseModule):
def _trigger_duck(self, channel): def _trigger_duck(self, channel):
channel.duck_lines = 0 channel.duck_lines = 0
channel.duck_active = time.time()
delay = random.SystemRandom().randint(5, 20) delay = random.SystemRandom().randint(5, 20)
channel.duck_active = time.time()+delay
self.timers.add("duck", self._send_duck, delay, channel=channel) self.timers.add("duck", self._send_duck, delay, channel=channel)
def _send_duck(self, timer): def _send_duck(self, timer):