Renamed main executable and organized scripts into a directory

pull/2/head
Aaron Johnson 7 years ago
parent 256d646941
commit a7a88a7886

@ -37,7 +37,7 @@ def process_command_srvstart(message, command, adm)
return "Refusal: Although I respect your wishes, master, I am not authorized to perform this function for this group."
else
telnet = @conf['telnet']
puts `./srvstart #{telnet['host']}`
puts `./scripts/srvstart #{telnet['host']}`
#return "Starting up the Empyrion service."
return "This function is currently broken. An attempt was made, but odds are against the server having actually started.\n\n" +
"Use /status for more info."
@ -58,7 +58,7 @@ def process_command_srvstop(message, command, adm)
return "Refusal: Although I respect your wishes, master, I am not authorized to perform this function for this group."
else
telnet = @conf['telnet']
`./srvstop #{telnet['host']} #{telnet['port']} #{telnet['pass']}`
`./scripts/srvstop #{telnet['host']} #{telnet['port']} #{telnet['pass']}`
return "Affirmation: I am shutting down the Empyrion service."
end
end

@ -108,7 +108,7 @@ def handle_message(message)
end
when '/status'
if message_from_admin?(message, adm) || is_chat_authorized?(message, @auth_chat)
reply = `./srvstatus #{telnet['host']} #{telnet['port']} #{telnet['pass']}`
reply = `./scripts/srvstatus #{telnet['host']} #{telnet['port']} #{telnet['pass']}`
else
reply = "Refusal: I am not authorized to provide this information here."
end
Loading…
Cancel
Save