From 8aaf9f1246b3ca9f2648e069fc52c80d629d7597 Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Sun, 2 Apr 2017 20:15:22 -0700 Subject: [PATCH] Improved weather help. --- src/generated/java/net/thauvin/erik/mobibot/ReleaseInfo.java | 4 ++-- src/main/java/net/thauvin/erik/mobibot/modules/Weather2.java | 4 ++++ version.properties | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/generated/java/net/thauvin/erik/mobibot/ReleaseInfo.java b/src/generated/java/net/thauvin/erik/mobibot/ReleaseInfo.java index 4ec5102..28233c9 100644 --- a/src/generated/java/net/thauvin/erik/mobibot/ReleaseInfo.java +++ b/src/generated/java/net/thauvin/erik/mobibot/ReleaseInfo.java @@ -13,9 +13,9 @@ import java.time.*; * Annotation Processor */ public final class ReleaseInfo { - private final static String buildmeta = "015"; + private final static String buildmeta = "016"; private final static LocalDateTime date = - LocalDateTime.ofInstant(Instant.ofEpochMilli(1491187126281L), ZoneId.systemDefault()); + LocalDateTime.ofInstant(Instant.ofEpochMilli(1491189257001L), ZoneId.systemDefault()); private final static int major = 0; private final static int minor = 7; private final static int patch = 0; diff --git a/src/main/java/net/thauvin/erik/mobibot/modules/Weather2.java b/src/main/java/net/thauvin/erik/mobibot/modules/Weather2.java index 2023256..56ce4e8 100644 --- a/src/main/java/net/thauvin/erik/mobibot/modules/Weather2.java +++ b/src/main/java/net/thauvin/erik/mobibot/modules/Weather2.java @@ -87,6 +87,10 @@ public class Weather2 extends AbstractModule { public void helpResponse(final Mobibot bot, final String sender, final String args, final boolean isPrivate) { bot.send(sender, "To display weather information:"); bot.send(sender, bot.helpIndent(bot.getNick() + ": " + WEATHER_CMD + " [, ]")); + bot.send(sender, "For example:"); + bot.send(sender, bot.helpIndent(bot.getNick() + ": " + WEATHER_CMD + "paris, fr")); + bot.send(sender, "The default ISO 3166 country code is " + Utils.bold("US") + + ". Zip codes are supported in the US."); } /** diff --git a/version.properties b/version.properties index 1dcf088..2979c5a 100644 --- a/version.properties +++ b/version.properties @@ -5,4 +5,4 @@ version.major=0 version.minor=7 version.patch=0 version.prerelease=beta -version.buildmeta=015 +version.buildmeta=016