|
|
@ -72,7 +72,6 @@ def process_command_srvstatus(message, command, adm)
|
|
|
|
if is_chat_authorized?(message, @auth_chat) || message_from_admin?(message, adm)
|
|
|
|
if is_chat_authorized?(message, @auth_chat) || message_from_admin?(message, adm)
|
|
|
|
telnet = @conf['telnet']
|
|
|
|
telnet = @conf['telnet']
|
|
|
|
if `nc -zvw3 #{telnet['host']} #{telnet['port']}`
|
|
|
|
if `nc -zvw3 #{telnet['host']} #{telnet['port']}`
|
|
|
|
#bot.api.send_message(chat_id: message.chat.id, text: "Server is online!\nGathering server information...")
|
|
|
|
|
|
|
|
`./scripts/srvstatus.receipt #{@conf['token']} #{message.chat.id}`
|
|
|
|
`./scripts/srvstatus.receipt #{@conf['token']} #{message.chat.id}`
|
|
|
|
end
|
|
|
|
end
|
|
|
|
reply = `./scripts/srvstatus #{telnet['host']} #{telnet['port']} #{telnet['pass']}`
|
|
|
|
reply = `./scripts/srvstatus #{telnet['host']} #{telnet['port']} #{telnet['pass']}`
|
|
|
|