From b86db9f1679c855c2d39a0b116f846d271271a2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sun, 19 Jun 2016 21:31:54 +0200 Subject: Add pirate example config.yml + description --- helpers/action.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'helpers/action.py') diff --git a/helpers/action.py b/helpers/action.py index 97873a0..5afe437 100644 --- a/helpers/action.py +++ b/helpers/action.py @@ -74,10 +74,14 @@ class Action: else: pass - def wait(self, duration = 0, **kwargs): + def wait(self, duration = 0, music = None, **kwargs): # FIXME: Make it stoppable # http://stackoverflow.com/questions/29082268/python-time-sleep-vs-event-wait - time.sleep(duration) + if music is None: + time.sleep(duration) + else: + # TODO + music.wait_end() def command_print(self, command = "", **kwargs): return "running command {}".format(command) -- cgit v1.2.3