From 6c01c81e206c5eabd69a9fe657765740836a626d Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 3 Oct 2019 22:02:27 +0300 Subject: [PATCH] python: Add 17 second delay and set 64 second delay to 24 seconds --- python/fucking_coffee.py | 4 +++- python3/fucking_coffee.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/python/fucking_coffee.py b/python/fucking_coffee.py index c19572f..5a5cdd8 100755 --- a/python/fucking_coffee.py +++ b/python/fucking_coffee.py @@ -14,13 +14,15 @@ password = '1234' password_prompt = 'Password: ' +time.sleep(17) + con = telnetlib.Telnet(coffee_machine_ip) con.read_until(password_prompt) con.write(password + "\n") # Make some coffee! con.write("sys brew\n") -time.sleep(64) +time.sleep(24) # love the smell! con.write("sys pour\n") diff --git a/python3/fucking_coffee.py b/python3/fucking_coffee.py index 0268b79..b300780 100755 --- a/python3/fucking_coffee.py +++ b/python3/fucking_coffee.py @@ -24,7 +24,7 @@ def main(): conn.write(COFFEE_MACHINE_PASS) conn.write('sys brew') - time.sleep(64) + time.sleep(24) conn.write('sys pour') conn.close()