Skip to content

Instantly share code, notes, and snippets.

@dylan-chong
Created May 13, 2018 10:14
Show Gist options
  • Save dylan-chong/b01476e8e2c32d8626d5eb3fd3e6ae0b to your computer and use it in GitHub Desktop.
Save dylan-chong/b01476e8e2c32d8626d5eb3fd3e6ae0b to your computer and use it in GitHub Desktop.
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