Removed reverseColor(int) from Utils class.
This commit is contained in:
parent
9b8ba57e68
commit
7fce4e009d
4 changed files with 27 additions and 40 deletions
|
@ -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;
|
||||
|
|
|
@ -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.
|
||||
*/
|
||||
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue