From a43edd17ae308a3fcb7c2b1eae615d611420bb97 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 8 Oct 2019 21:52:26 +0100 Subject: duck_active should be when the duck spawns --- modules/ducks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/ducks.py') diff --git a/modules/ducks.py b/modules/ducks.py index 4e465986..4bfb875c 100644 --- a/modules/ducks.py +++ b/modules/ducks.py @@ -53,8 +53,8 @@ class Module(ModuleManager.BaseModule): def _trigger_duck(self, channel): channel.duck_lines = 0 - channel.duck_active = time.time() delay = random.SystemRandom().randint(5, 20) + channel.duck_active = time.time()+delay self.timers.add("duck", self._send_duck, delay, channel=channel) def _send_duck(self, timer): -- cgit v1.3.1-10-gc9f91