2
0
mirror of https://github.com/narkoz/hacker-scripts synced 2025-08-24 11:27:12 +00:00

Merge pull request #37 from CNA-Bld/fix-coffie

add the 17-second delay to fucking_coffee
This commit is contained in:
Nihad Abbasov 2015-11-25 20:38:09 +04:00
commit a503d242d8

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')