duck_active should be when the duck spawns
This commit is contained in:
parent
6ee2b6cf27
commit
a43edd17ae
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue