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

@ -13,9 +13,9 @@ import java.time.*;
* Annotation Processor</a> * Annotation Processor</a>
*/ */
public final class ReleaseInfo { public final class ReleaseInfo {
private final static String buildmeta = "010"; private final static String buildmeta = "014";
private final static LocalDateTime date = private final static LocalDateTime date =
LocalDateTime.ofInstant(Instant.ofEpochMilli(1491181046873L), ZoneId.systemDefault()); LocalDateTime.ofInstant(Instant.ofEpochMilli(1491184254508L), ZoneId.systemDefault());
private final static int major = 0; private final static int major = 0;
private final static int minor = 7; private final static int minor = 7;
private final static int patch = 0; private final static int patch = 0;

View file

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

View file

@ -5,4 +5,4 @@ version.major=0
version.minor=7 version.minor=7
version.patch=0 version.patch=0
version.prerelease=beta version.prerelease=beta
version.buildmeta=010 version.buildmeta=014