Created
May 13, 2018 10:14
-
-
Save dylan-chong/b01476e8e2c32d8626d5eb3fd3e6ae0b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
start = time.time() | |
def time_left(): | |
global start | |
return 5 * 60 - (time.time() - start) | |
time.sleep(1) | |
while time_left() > 0: | |
texts = [ | |
'@diputagabr You have some work to do!', | |
'@diputagabr Wake up any time now...', | |
'@diputagabr You know this work is going to take a while. You should start now!', | |
'@diputagabr I do have to re-review your stuff after you finish you know!', | |
] | |
t = texts[int(time_left() % len(texts))] | |
Text(t).execute() | |
Text(' (*this was written by a hacked together bot and cannot be cancelled*)').execute() | |
Key('enter').execute() | |
time.sleep(5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment