2
0
mirror of https://github.com/narkoz/hacker-scripts synced 2025-08-28 13:17:44 +00:00

add the 17-second delay to fucking_coffee

This commit is contained in:
CNA-Bld 2015-11-25 21:46:26 +08:00
parent c6373cc762
commit cdaf2b0dcd

View File

@ -11,8 +11,10 @@ require 'net/telnet'
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')