check api result for success (200) response. use var instead of const for openweathermap instance (to accomodate ircbot "reload" command)