Fixed delays to the python3 implementation of fucking-coffee

This commit is contained in:
notacoder69 2018-10-09 00:43:51 +05:30
parent 7ef1cda759
commit 313a70b080

View File

@ -17,14 +17,13 @@ def main():
return
time.sleep(17)
conn = telnetlib.Telnet(host=COFFEE_MACHINE_ADDR)
conn.open()
conn.expect([COFFEE_MACHINE_PROM])
conn.write(COFFEE_MACHINE_PASS)
conn.write('sys brew')
time.sleep(64)
time.sleep(24)
conn.write('sys pour')
conn.close()