Copyright update.
This commit is contained in:
parent
e12fceb406
commit
0eca6aa660
26 changed files with 27 additions and 28 deletions
|
@ -18,7 +18,7 @@ public final class ReleaseInfo {
|
||||||
|
|
||||||
public final static String PROJECT = "mobibot";
|
public final static String PROJECT = "mobibot";
|
||||||
public final static LocalDateTime BUILDDATE =
|
public final static LocalDateTime BUILDDATE =
|
||||||
LocalDateTime.ofInstant(Instant.ofEpochMilli(1496214996413L), ZoneId.systemDefault());
|
LocalDateTime.ofInstant(Instant.ofEpochMilli(1496250480235L), ZoneId.systemDefault());
|
||||||
public final static int MAJOR = 0;
|
public final static int MAJOR = 0;
|
||||||
public final static int MINOR = 7;
|
public final static int MINOR = 7;
|
||||||
public final static int PATCH = 2;
|
public final static int PATCH = 2;
|
||||||
|
|
|
@ -34,7 +34,7 @@ package net.thauvin.erik.mobibot;
|
||||||
/**
|
/**
|
||||||
* The <code>commands</code>, <code>keywords</code> and <code>arguments</code>.
|
* The <code>commands</code>, <code>keywords</code> and <code>arguments</code>.
|
||||||
*
|
*
|
||||||
* @author <a href="http://erik.thauvin.net/" target="_blank">Erik C. Thauvin</a>
|
* @author <a href="https://erik.thauvin.net" target="_blank">Erik C. Thauvin</a>
|
||||||
* @created 2014-04-26
|
* @created 2014-04-26
|
||||||
* @since 1.0
|
* @since 1.0
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -44,7 +44,7 @@ import java.util.List;
|
||||||
/**
|
/**
|
||||||
* Manages the feed entries.
|
* Manages the feed entries.
|
||||||
*
|
*
|
||||||
* @author <a href="http://erik.thauvin.net/" target="_blank">Erik C. Thauvin</a>
|
* @author <a href="https://erik.thauvin.net" target="_blank">Erik C. Thauvin</a>
|
||||||
* @created 2014-04-28
|
* @created 2014-04-28
|
||||||
* @since 1.0
|
* @since 1.0
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -37,7 +37,7 @@ import java.time.LocalDateTime;
|
||||||
/**
|
/**
|
||||||
* The class used to store comments associated to a specific entry.
|
* The class used to store comments associated to a specific entry.
|
||||||
*
|
*
|
||||||
* @author <a href="http://erik.thauvin.net/" target="_blank">Erik C. Thauvin</a>
|
* @author <a href="https://erik.thauvin.net" target="_blank">Erik C. Thauvin</a>
|
||||||
* @created Jan 31, 2004
|
* @created Jan 31, 2004
|
||||||
* @since 1.0
|
* @since 1.0
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -43,7 +43,7 @@ import java.util.concurrent.CopyOnWriteArrayList;
|
||||||
/**
|
/**
|
||||||
* The class used to store link entries.
|
* The class used to store link entries.
|
||||||
*
|
*
|
||||||
* @author <a href="http://erik.thauvin.net/" target="_blank">Erik C. Thauvin</a>
|
* @author <a href="https://erik.thauvin.net" target="_blank">Erik C. Thauvin</a>
|
||||||
* @created Jan 31, 2004
|
* @created Jan 31, 2004
|
||||||
* @since 1.0
|
* @since 1.0
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -44,7 +44,7 @@ import java.util.List;
|
||||||
/**
|
/**
|
||||||
* Reads a RSS feed.
|
* Reads a RSS feed.
|
||||||
*
|
*
|
||||||
* @author <a href="http://erik.thauvin.net/" target="_blank">Erik C. Thauvin</a>
|
* @author <a href="https://erik.thauvin.net" target="_blank">Erik C. Thauvin</a>
|
||||||
* @created Feb 1, 2004
|
* @created Feb 1, 2004
|
||||||
* @since 1.0
|
* @since 1.0
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -52,7 +52,7 @@ import java.util.*;
|
||||||
/**
|
/**
|
||||||
* Implements the #mobitopia bot.
|
* Implements the #mobitopia bot.
|
||||||
*
|
*
|
||||||
* @author <a href="http://erik.thauvin.net/" target="_blank">Erik C. Thauvin</a>
|
* @author <a href="https://erik.thauvin.net" target="_blank">Erik C. Thauvin</a>
|
||||||
* @created Jan 31, 2004
|
* @created Jan 31, 2004
|
||||||
* @since 1.0
|
* @since 1.0
|
||||||
*/
|
*/
|
||||||
|
@ -817,7 +817,7 @@ public class Mobibot extends PircBot {
|
||||||
*/
|
*/
|
||||||
private void infoResponse(final String sender, final boolean isPrivate) {
|
private void infoResponse(final String sender, final boolean isPrivate) {
|
||||||
for (final String info : INFO_STRS) {
|
for (final String info : INFO_STRS) {
|
||||||
if (info.startsWith("http://")) {
|
if (info.startsWith("https://")) {
|
||||||
send(sender, Utils.green(info), isPrivate);
|
send(sender, Utils.green(info), isPrivate);
|
||||||
} else {
|
} else {
|
||||||
send(sender, info, isPrivate);
|
send(sender, info, isPrivate);
|
||||||
|
|
|
@ -45,7 +45,7 @@ import java.util.logging.Logger;
|
||||||
/**
|
/**
|
||||||
* The class to handle posts to pinbard.in.
|
* The class to handle posts to pinbard.in.
|
||||||
*
|
*
|
||||||
* @author <a href="http://erik.thauvin.net/" target="_blank">Erik C. Thauvin</a>
|
* @author <a href="https://erik.thauvin.net" target="_blank">Erik C. Thauvin</a>
|
||||||
* @created 2017-05-17
|
* @created 2017-05-17
|
||||||
* @since 1.0
|
* @since 1.0
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -37,7 +37,7 @@ import java.util.concurrent.CopyOnWriteArrayList;
|
||||||
/**
|
/**
|
||||||
* The <code>Tell</code> command.
|
* The <code>Tell</code> command.
|
||||||
*
|
*
|
||||||
* @author <a href="http://erik.thauvin.net/" target="_blank">Erik C. Thauvin</a>
|
* @author <a href="https://erik.thauvin.net" target="_blank">Erik C. Thauvin</a>
|
||||||
* @created 2016-07-02
|
* @created 2016-07-02
|
||||||
* @since 1.0
|
* @since 1.0
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -39,7 +39,7 @@ import java.time.format.DateTimeFormatter;
|
||||||
/**
|
/**
|
||||||
* The <code>TellMessage</code> class.
|
* The <code>TellMessage</code> class.
|
||||||
*
|
*
|
||||||
* @author <a href="http://erik.thauvin.net/" target="_blank">Erik C. Thauvin</a>
|
* @author <a href="https://erik.thauvin.net" target="_blank">Erik C. Thauvin</a>
|
||||||
* @created 2014-04-24
|
* @created 2014-04-24
|
||||||
* @since 1.0
|
* @since 1.0
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -42,7 +42,7 @@ import java.util.List;
|
||||||
/**
|
/**
|
||||||
* The Tell Messages Manager.
|
* The Tell Messages Manager.
|
||||||
*
|
*
|
||||||
* @author <a href="http://erik.thauvin.net/" target="_blank">Erik C. Thauvin</a>
|
* @author <a href="https://erik.thauvin.net" target="_blank">Erik C. Thauvin</a>
|
||||||
* @created 2014-04-26
|
* @created 2014-04-26
|
||||||
* @since 1.0
|
* @since 1.0
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -21,7 +21,7 @@ import java.io.InputStreamReader;
|
||||||
* </p>
|
* </p>
|
||||||
* and follow the prompts/instructions.
|
* and follow the prompts/instructions.
|
||||||
*
|
*
|
||||||
* @author <a href="http://erik.thauvin.net/" target="_blank">Erik C. Thauvin</a>
|
* @author <a href="https://erik.thauvin.net" target="_blank">Erik C. Thauvin</a>
|
||||||
* @author <a href="http://twitter4j.org/en/code-examples.html#oauth" target="_blank">Twitter4J</a>
|
* @author <a href="http://twitter4j.org/en/code-examples.html#oauth" target="_blank">Twitter4J</a>
|
||||||
* @created Sep 13, 2010
|
* @created Sep 13, 2010
|
||||||
* @since 1.0
|
* @since 1.0
|
||||||
|
|
|
@ -42,7 +42,7 @@ import java.util.Date;
|
||||||
/**
|
/**
|
||||||
* Miscellaneous utilities class.
|
* Miscellaneous utilities class.
|
||||||
*
|
*
|
||||||
* @author <a href="http://erik.thauvin.net/" target="_blank">Erik C. Thauvin</a>
|
* @author <a href="https://erik.thauvin.net" target="_blank">Erik C. Thauvin</a>
|
||||||
* @created 2014-04-26
|
* @created 2014-04-26
|
||||||
* @since 1.0
|
* @since 1.0
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -39,7 +39,7 @@ import java.util.*;
|
||||||
/**
|
/**
|
||||||
* The <code>Module</code> abstract class.
|
* The <code>Module</code> abstract class.
|
||||||
*
|
*
|
||||||
* @author <a href="http://erik.thauvin.net/" target="_blank">Erik C. Thauvin</a>
|
* @author <a href="https://erik.thauvin.net" target="_blank">Erik C. Thauvin</a>
|
||||||
* @created 2016-07-01
|
* @created 2016-07-01
|
||||||
* @since 1.0
|
* @since 1.0
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -41,7 +41,7 @@ import java.text.DecimalFormat;
|
||||||
/**
|
/**
|
||||||
* The Calc module.
|
* The Calc module.
|
||||||
*
|
*
|
||||||
* @author <a href="http://erik.thauvin.net/" target="_blank">Erik C. Thauvin</a>
|
* @author <a href="https://erik.thauvin.net" target="_blank">Erik C. Thauvin</a>
|
||||||
* @created 2016-07-01
|
* @created 2016-07-01
|
||||||
* @since 1.0
|
* @since 1.0
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -50,7 +50,7 @@ import java.util.TreeMap;
|
||||||
/**
|
/**
|
||||||
* The CurrentConverter module.
|
* The CurrentConverter module.
|
||||||
*
|
*
|
||||||
* @author <a href="http://erik.thauvin.net/" target="_blank">Erik C. Thauvin</a>
|
* @author <a href="https://erik.thauvin.net" target="_blank">Erik C. Thauvin</a>
|
||||||
* @created Feb 11, 2004
|
* @created Feb 11, 2004
|
||||||
* @since 1.0
|
* @since 1.0
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -39,7 +39,7 @@ import java.util.Random;
|
||||||
/**
|
/**
|
||||||
* The Dice module.
|
* The Dice module.
|
||||||
*
|
*
|
||||||
* @author <a href="http://erik.thauvin.net/" target="_blank">Erik C. Thauvin</a>
|
* @author <a href="https://erik.thauvin.net" target="_blank">Erik C. Thauvin</a>
|
||||||
* @created 2014-04-28
|
* @created 2014-04-28
|
||||||
* @since 1.0
|
* @since 1.0
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -45,7 +45,7 @@ import java.net.URLEncoder;
|
||||||
/**
|
/**
|
||||||
* The GoogleSearch module.
|
* The GoogleSearch module.
|
||||||
*
|
*
|
||||||
* @author <a href="http://erik.thauvin.net/" target="_blank">Erik C. Thauvin</a>
|
* @author <a href="https://erik.thauvin.net" target="_blank">Erik C. Thauvin</a>
|
||||||
* @created Feb 7, 2004
|
* @created Feb 7, 2004
|
||||||
* @since 1.0
|
* @since 1.0
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -43,7 +43,7 @@ import java.net.URLConnection;
|
||||||
/**
|
/**
|
||||||
* The Joke module.
|
* The Joke module.
|
||||||
*
|
*
|
||||||
* @author <a href="http://erik.thauvin.net/" target="_blank">Erik C. Thauvin</a>
|
* @author <a href="https://erik.thauvin.net" target="_blank">Erik C. Thauvin</a>
|
||||||
* @created 2014-04-20
|
* @created 2014-04-20
|
||||||
* @since 1.0
|
* @since 1.0
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -41,7 +41,7 @@ import java.net.UnknownHostException;
|
||||||
/**
|
/**
|
||||||
* The Lookup module.
|
* The Lookup module.
|
||||||
*
|
*
|
||||||
* @author <a href="http://erik.thauvin.net/" target="_blank">Erik C. Thauvin</a>
|
* @author <a href="https://erik.thauvin.net" target="_blank">Erik C. Thauvin</a>
|
||||||
* @created 2014-04-26
|
* @created 2014-04-26
|
||||||
* @since 1.0
|
* @since 1.0
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -40,7 +40,7 @@ import java.util.Random;
|
||||||
/**
|
/**
|
||||||
* The Ping module.
|
* The Ping module.
|
||||||
*
|
*
|
||||||
* @author <a href="http://erik.thauvin.net/" target="_blank">Erik C. Thauvin</a>
|
* @author <a href="https://erik.thauvin.net" target="_blank">Erik C. Thauvin</a>
|
||||||
* @created 2016-07-02
|
* @created 2016-07-02
|
||||||
* @since 1.0
|
* @since 1.0
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -42,7 +42,7 @@ import java.io.IOException;
|
||||||
/**
|
/**
|
||||||
* The StockQuote module.
|
* The StockQuote module.
|
||||||
*
|
*
|
||||||
* @author <a href="http://erik.thauvin.net/" target="_blank">Erik C. Thauvin</a>
|
* @author <a href="https://erik.thauvin.net" target="_blank">Erik C. Thauvin</a>
|
||||||
* @created Feb 7, 2004
|
* @created Feb 7, 2004
|
||||||
* @since 1.0
|
* @since 1.0
|
||||||
*/
|
*/
|
||||||
|
@ -88,7 +88,6 @@ final public class StockQuote extends AbstractModule {
|
||||||
*/
|
*/
|
||||||
private void run(final Mobibot bot, final String sender, final String symbol) {
|
private void run(final Mobibot bot, final String sender, final String symbol) {
|
||||||
try {
|
try {
|
||||||
|
|
||||||
final OkHttpClient client = new OkHttpClient();
|
final OkHttpClient client = new OkHttpClient();
|
||||||
final Request request = new Request.Builder().url(YAHOO_URL + symbol.toUpperCase()).build();
|
final Request request = new Request.Builder().url(YAHOO_URL + symbol.toUpperCase()).build();
|
||||||
final Response response = client.newCall(request).execute();
|
final Response response = client.newCall(request).execute();
|
||||||
|
|
|
@ -39,7 +39,7 @@ import twitter4j.conf.ConfigurationBuilder;
|
||||||
/**
|
/**
|
||||||
* The Twitter module.
|
* The Twitter module.
|
||||||
*
|
*
|
||||||
* @author <a href="http://erik.thauvin.net/" target="_blank">Erik C. Thauvin</a>
|
* @author <a href="https://erik.thauvin.net" target="_blank">Erik C. Thauvin</a>
|
||||||
* @created Sept 10, 2008
|
* @created Sept 10, 2008
|
||||||
* @since 1.0
|
* @since 1.0
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -39,7 +39,7 @@ import java.util.Random;
|
||||||
/**
|
/**
|
||||||
* The War module.
|
* The War module.
|
||||||
*
|
*
|
||||||
* @author <a href="http://erik.thauvin.net/" target="_blank">Erik C. Thauvin</a>
|
* @author <a href="https://erik.thauvin.net" target="_blank">Erik C. Thauvin</a>
|
||||||
* @created 2014-04-28
|
* @created 2014-04-28
|
||||||
* @since 1.0
|
* @since 1.0
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -41,7 +41,7 @@ import java.io.IOException;
|
||||||
/**
|
/**
|
||||||
* The <code>Weather2</code> module.
|
* The <code>Weather2</code> module.
|
||||||
*
|
*
|
||||||
* @author <a href="http://erik.thauvin.net/" target="_blank">Erik C. Thauvin</a>
|
* @author <a href="https://erik.thauvin.net" target="_blank">Erik C. Thauvin</a>
|
||||||
* @created 2017-04-02
|
* @created 2017-04-02
|
||||||
* @since 1.0
|
* @since 1.0
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -43,7 +43,7 @@ import java.util.TreeMap;
|
||||||
/**
|
/**
|
||||||
* The WorldTime module.
|
* The WorldTime module.
|
||||||
*
|
*
|
||||||
* @author <a href="http://erik.thauvin.net/" target="_blank">Erik C. Thauvin</a>
|
* @author <a href="https://erik.thauvin.net" target="_blank">Erik C. Thauvin</a>
|
||||||
* @created 2014-04-27
|
* @created 2014-04-27
|
||||||
* @since 1.0
|
* @since 1.0
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue