diff options
| author | 2019-10-08 21:52:26 +0100 | |
|---|---|---|
| committer | 2019-10-08 21:52:26 +0100 | |
| commit | a43edd17ae308a3fcb7c2b1eae615d611420bb97 (patch) | |
| tree | 81d105b1fd1ceb6206339297124230b27165f34a /modules/ducks.py | |
| parent | self.timers -> self._timers (diff) | |
| signature | ||
duck_active should be when the duck spawns
Diffstat (limited to 'modules/ducks.py')
| -rw-r--r-- | modules/ducks.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |
