Added OWM url for queried city.

This commit is contained in:
Erik C. Thauvin 2017-04-02 18:52:53 -07:00
parent 5e5f0d84d1
commit ef59258eec
3 changed files with 6 additions and 4 deletions

View file

@ -149,6 +149,8 @@ public class Weather2 extends AbstractModule {
bot.send(sender, condition.toString(), isPrivate);
}
bot.send(sender, Utils.green("https://openweathermap.org/city/" + cwd.getCityCode()), isPrivate);
return;
}
@ -167,6 +169,6 @@ public class Weather2 extends AbstractModule {
private String wind(final Float w) {
final double kmh = w * 1.60934;
return Math.round(kmh) + " km/h, " + Math.round(w) + " mph";
return Math.round(w) + " mph, " + Math.round(kmh) + " km/h";
}
}