diff --git a/src/generated/java/net/thauvin/erik/mobibot/ReleaseInfo.java b/src/generated/java/net/thauvin/erik/mobibot/ReleaseInfo.java index ac16dd0..e4ab872 100644 --- a/src/generated/java/net/thauvin/erik/mobibot/ReleaseInfo.java +++ b/src/generated/java/net/thauvin/erik/mobibot/ReleaseInfo.java @@ -14,7 +14,7 @@ import java.util.Date; */ public final class ReleaseInfo { private final static String buildmeta = "007"; - private final static Date date = new Date(1467054540566L); + private final static Date date = new Date(1467057655408L); private final static int major = 0; private final static int minor = 6; private final static int patch = 1; diff --git a/src/main/java/net/thauvin/erik/mobibot/Mobibot.java b/src/main/java/net/thauvin/erik/mobibot/Mobibot.java index 39946f7..45afd5f 100644 --- a/src/main/java/net/thauvin/erik/mobibot/Mobibot.java +++ b/src/main/java/net/thauvin/erik/mobibot/Mobibot.java @@ -38,7 +38,6 @@ import net.thauvin.erik.semver.Version; import org.apache.commons.cli.*; import org.apache.commons.logging.impl.Log4JLogger; import org.apache.log4j.Level; -import org.jibble.pircbot.Colors; import org.jibble.pircbot.PircBot; import org.jibble.pircbot.User; import org.jsoup.Jsoup; @@ -267,16 +266,16 @@ public class Mobibot extends PircBot */ private String identMsg = ""; - /** - * The last player. - */ - private String lastPlayer = ""; - /** * The ident nick. */ private String identNick = ""; + /** + * The last player. + */ + private String lastPlayer = ""; + /** * The number of days message are kept. */ @@ -1365,7 +1364,7 @@ public class Mobibot extends PircBot send(sender, "The op commands are:"); send(sender, helpIndent(Commands.CYCLE_CMD + " " + Commands.INFO_CMD + " " + Commands.ME_CMD + " " - + Commands.MSG_CMD + " " + Commands.SAY_CMD + " " + Commands.VERSION_CMD)); + + Commands.MSG_CMD + " " + Commands.SAY_CMD + " " + Commands.VERSION_CMD)); } } } @@ -2397,8 +2396,8 @@ public class Mobibot extends PircBot if (!isMessage) { send(nickname, - Utils.bold("You") + " wanted me to remind you: " + Utils.reverseColor(message - .getMessage()), true); + Utils.bold("You") + " wanted me to remind you: " + Utils + .reverseColor(message.getMessage()), true); message.setIsReceived(); message.setIsNotified(); @@ -2409,7 +2408,8 @@ public class Mobibot extends PircBot else { send(nickname, - message.getSender() + " wanted me to tell you: " + Utils.reverseColor(message.getMessage()), + message.getSender() + " wanted me to tell you: " + Utils + .reverseColor(message.getMessage()), true); message.setIsReceived(); @@ -2421,9 +2421,8 @@ public class Mobibot extends PircBot .isNotified()) { send(nickname, - "Your message " + Utils.reverseColor("[ID " + message.getId() + ']') - + " was sent to " + Utils.bold(message.getRecipient()) + " on " + Utils.UTC_SDF - .format(message.getReceived()), + "Your message " + Utils.reverseColor("[ID " + message.getId() + ']') + " was sent to " + Utils + .bold(message.getRecipient()) + " on " + Utils.UTC_SDF.format(message.getReceived()), true); message.setIsNotified(); diff --git a/src/main/java/net/thauvin/erik/mobibot/Twitter.java b/src/main/java/net/thauvin/erik/mobibot/Twitter.java index 3bf3030..9096603 100644 --- a/src/main/java/net/thauvin/erik/mobibot/Twitter.java +++ b/src/main/java/net/thauvin/erik/mobibot/Twitter.java @@ -90,8 +90,8 @@ class Twitter implements Runnable * @param accessTokenSecret The Twitter access token secret. * @param message The Twitter message. */ - public Twitter(final Mobibot bot, final String sender, final String consumerKey, final String consumerSecret, final String accessToken, - final String accessTokenSecret, final String message) + public Twitter(final Mobibot bot, final String sender, final String consumerKey, final String consumerSecret, + final String accessToken, final String accessTokenSecret, final String message) { this.bot = bot; this.consumerKey = consumerKey; diff --git a/src/main/java/net/thauvin/erik/mobibot/Utils.java b/src/main/java/net/thauvin/erik/mobibot/Utils.java index cc6294a..69267e9 100644 --- a/src/main/java/net/thauvin/erik/mobibot/Utils.java +++ b/src/main/java/net/thauvin/erik/mobibot/Utils.java @@ -88,6 +88,18 @@ final class Utils return bold(Integer.toString(i)); } + /** + * Makes the given string bold. + * + * @param s The string. + * + * @return The bold string. + */ + public static String bold(final String s) + { + return Colors.BOLD + s + Colors.BOLD; + } + /** * Builds an entry's comment for display on the channel. * @@ -154,18 +166,6 @@ final class Utils return buff.toString(); } - /** - * Makes the given string bold. - * - * @param s The string. - * - * @return The bold string. - */ - public static String bold(final String s) - { - return Colors.BOLD + s + Colors.BOLD; - } - /** * Makes the given string green. * @@ -378,18 +378,6 @@ final class Utils return false; } - /** - * Makes the given int reverse color. - * - * @param i The int. - * - * @return The reverse color string. - */ - public static String reverseColor(final int i) - { - return reverseColor(Integer.toString(i)); - } - /** * Makes the given string reverse color. *