diff options
| author | 2018-09-01 09:09:02 +0100 | |
|---|---|---|
| committer | 2018-09-01 09:09:02 +0100 | |
| commit | 3d3cb9a598f09a5d7bf31288dd207b4df78a0d59 (patch) | |
| tree | 3706ca7e02efa7ff2d6ba594adcc26a71409285d /modules | |
| parent | Merge in (#13) (diff) | |
| signature | ||
Switch print() to log.info() for next-duck-wave information.
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/ducks.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/ducks.py b/modules/ducks.py index 7e1dba33..0680fd4d 100644 --- a/modules/ducks.py +++ b/modules/ducks.py @@ -61,7 +61,8 @@ class Module(object): def duck_loop_entry(self, event): wait = self.get_random_duck_time() self.timer = Timer(wait, self.show_duck, [event]) - print(" Sending out animal in %s seconds" % wait) + self.bot.log.info("Sending out a wave of ducks in %s seconds", + [wait]) self.timer.start() def bootstrap(self, event): @@ -98,9 +99,9 @@ class Module(object): max = "max-duck-time-%s" % (channel_name) self.bot.log.debug("Attempting to set %s to %s", - [str(min), str(self.duck_times[min])]); + [str(min), str(self.duck_times[min])]) self.bot.log.debug("Attempting to set %s to %s", - [str(max), str(self.duck_times[max])]); + [str(max), str(self.duck_times[max])]) return random.randint(self.duck_times[min], self.duck_times[max]) |
