Added -serial command line argument.

Added ability to search the current URL posts.
Added ping command.
Added more efficient arguments parsing in the public and private commands.
Added ability for the originator to modify a post's URL.
Removed the various URL-based attributes from the constructor.
Fixed the nick command.
This commit is contained in:
Erik C. Thauvin 2004-02-25 12:12:28 +00:00
parent 354d2b11d2
commit d27fe4a666
4 changed files with 412 additions and 319 deletions

View file

@ -110,7 +110,7 @@ public class CurrencyConverter implements Runnable
{
_bot = bot;
_sender = sender;
_query = query;
_query = query.toLowerCase();
if (!s_date.equals(date))
{

View file

@ -125,7 +125,7 @@ public class GoogleSearch implements Runnable
{
final String r = GOOGLE_BEAN.getSpellingSuggestion(_query);
if ((r != null) && (r.length() > 0))
if (Mobibot.isValidString(r))
{
_bot.sendNotice(_sender, Mobibot.unescapeXml(r));
}
@ -153,8 +153,8 @@ public class GoogleSearch implements Runnable
for (int i = 0; i < GOOGLE_BEAN.getResultElementsCount(); i++)
{
_bot.sendNotice(_sender,
GOOGLE_BEAN.getResultElementProperty(i, "title").replaceAll("<([bB]|/[bB])>",
Colors.BOLD));
Mobibot.unescapeXml(GOOGLE_BEAN.getResultElementProperty(i, "title").replaceAll("<([bB]|/[bB])>",
Colors.BOLD)));
_bot.sendNotice(_sender, TAB_INDENT + '<' + GOOGLE_BEAN.getResultElementProperty(i, "url") +
'>');
}

File diff suppressed because it is too large Load diff

View file

@ -91,7 +91,7 @@ public class Weather implements Runnable
{
_bot = bot;
_sender = sender;
_station = station;
_station = station.toUpperCase();
_isPrivate = isPrivate;
}