Skip to content

Commit

Permalink
add the 17-second delay to fucking_coffee
Browse files Browse the repository at this point in the history
  • Loading branch information
CNA-Bld committed Nov 25, 2015
1 parent c6373cc commit cdaf2b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fucking_coffee.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@
coffee_machine_ip = '10.10.42.42'
password = '1234'
password_prompt = 'Password: '
delay_before_brew = 17
delay = 24

sleep delay_before_brew
con = Net::Telnet.new('Host' => coffee_machine_ip)
con.cmd('String' => password, 'Match' => /#{password_prompt}/)
con.cmd('sys brew')
Expand Down

0 comments on commit cdaf2b0

Please sign in to comment.