Skip to content

Commit cc6585c

Browse files
committed
Slightly-more-accurate fucking_coffee.rb
Implemented a `delay` variable, and set it to 24 instead of 64 to better reflect the original story.
1 parent b0117c2 commit cc6585c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fucking_coffee.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@
1111
coffee_machine_ip = '10.10.42.42'
1212
password = '1234'
1313
password_prompt = 'Password: '
14+
delay = 24
1415

1516
con = Net::Telnet.new('Host' => coffee_machine_ip)
1617
con.cmd('String' => password, 'Match' => /#{password_prompt}/)
1718
con.cmd('sys brew')
18-
sleep 64
19+
sleep delay
1920
con.cmd('sys pour')
2021
con.close

0 commit comments

Comments
 (0)