Updating Weather API

So I decided to take a peek at the weather API to see why it was down, turns out they've changed domain to this so I'm hoping weather will now work.
This commit is contained in:
Jordan Fearnley 2016-10-05 10:22:13 +01:00 committed by GitHub
parent ad17ff2552
commit 9bd1a432ed

View File

@ -55,7 +55,7 @@ namespace NadekoBot.Modules.Searches
{
var city = e.GetArg("city").Replace(" ", "");
var country = e.GetArg("country").Replace(" ", "");
var response = await SearchHelper.GetResponseStringAsync($"http://api.lawlypopzz.xyz/nadekobot/weather/?city={city}&country={country}").ConfigureAwait(false);
var response = await SearchHelper.GetResponseStringAsync($"http://api.ninetales.us/nadekobot/weather/?city={city}&country={country}").ConfigureAwait(false);
var obj = JObject.Parse(response)["weather"];