Skip to content

Commit

Permalink
Slightly-more-accurate fucking_coffee.rb
Browse files Browse the repository at this point in the history
Implemented a `delay` variable, and set it to 24 instead of 64 to better reflect the original story.
  • Loading branch information
YellowApple committed Nov 23, 2015
1 parent b0117c2 commit cc6585c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fucking_coffee.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@
coffee_machine_ip = '10.10.42.42'
password = '1234'
password_prompt = 'Password: '
delay = 24

con = Net::Telnet.new('Host' => coffee_machine_ip)
con.cmd('String' => password, 'Match' => /#{password_prompt}/)
con.cmd('sys brew')
sleep 64
sleep delay
con.cmd('sys pour')
con.close

0 comments on commit cc6585c

Please sign in to comment.