From 6cf607ba079fd9a3288d9ce851329ca625f66496 Mon Sep 17 00:00:00 2001 From: "mb@mb" Date: Wed, 24 Oct 2018 18:58:31 +0200 Subject: [PATCH] disabled the while loop for now, we will run the script each time a participant starts writing --- timer.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/timer.py b/timer.py index ee6a94c..a55ffc8 100644 --- a/timer.py +++ b/timer.py @@ -4,8 +4,8 @@ import os nextturn=['who is next','next','well done','keep going','almost there', 'bonus! bonus! you have another minute', 'what a great edit', "it's like i'm reading The New York Times", 'nice phrasing. next'] -while True: - choice=random.choice(nextturn) - cmd="espeak '{}'".format(choice) - os.system(cmd) - time.sleep(60) +# while True: +time.sleep(60) +choice=random.choice(nextturn) +cmd="espeak '{}'".format(choice) +os.system(cmd)