|
|
|
@ -72,7 +72,9 @@ def process_command_srvstatus(message, command, adm)
|
|
|
|
|
if is_chat_authorized?(message, @auth_chat) || message_from_admin?(message, adm)
|
|
|
|
|
telnet = @conf['telnet']
|
|
|
|
|
if `nc -zvw3 #{telnet['host']} #{telnet['port']}`
|
|
|
|
|
puts 'Server responded. Fetching details...'
|
|
|
|
|
`./scripts/srvstatus.receipt #{@conf['token']} #{message.chat.id}`
|
|
|
|
|
STDOUT.flush
|
|
|
|
|
end
|
|
|
|
|
reply = `./scripts/srvstatus #{telnet['host']} #{telnet['port']} #{telnet['pass']}`
|
|
|
|
|
else
|
|
|
|
|