add a warning when full server path and robtop server path does not match

This commit is contained in:
Jill 2023-01-03 20:30:14 +03:00
parent d8eca119b7
commit 9b2a1315ea
1 changed files with 11 additions and 0 deletions

View File

@ -215,6 +215,17 @@ module CrystalGauntlet
server.bind_unix(listen_on.to_s.sub("unix://",""))
end
full_server_path = (config_get("general.hostname").as?(String) || "") + "/" + (config_get("general.append_path").as?(String) || "")
robtop_server_path = "www.boomlings.com/database/"
if full_server_path.size != robtop_server_path.size
LOG.warn { "i think you made a mistake? length of full server path and default .exe location do not match" }
LOG.warn { " #{full_server_path}" }
LOG.warn { " #{robtop_server_path}" }
min_length = Math.min(full_server_path.size, robtop_server_path.size)
max_length = Math.max(full_server_path.size, robtop_server_path.size)
LOG.warn { " #{" " * min_length}#{"^" * (max_length - min_length)}"}
end
LOG.notice { "Listening on #{listen_on.to_s.colorize(:white)}" }
server.listen
end