You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
489 B
15 lines
489 B
def process_callback_zone(message)
|
|
host = message.data.split("|")[1]
|
|
#zone = @probes[host].values.first
|
|
zone = @probes[host].select { |k,v| k == 'loc' }
|
|
zone = zone["loc"]
|
|
puts "Selected: #{zone}"
|
|
port = @probes[host].select { |k,v| k == 'port' }
|
|
port = port["port"]
|
|
#print " Port: #{port}\n"
|
|
tdata = process_tdata(host, port)
|
|
#puts "Selected: #{zone} [#{tdata}]"
|
|
send_message(message.message.chat.id, "#{zone}: #{tdata}")
|
|
STDOUT.flush
|
|
end
|