Compare commits
No commits in common. "9f0e09b8e6e13acc41d4af69773a958e5fa11dc2" and "cbdef8e67440061bf85a0154b3230442804557aa" have entirely different histories.
9f0e09b8e6
...
cbdef8e674
|
@ -1,3 +1,3 @@
|
|||
#Build Number for ANT. Do not edit!
|
||||
#Sun Apr 18 03:16:03 CEST 2021
|
||||
build.number=3
|
||||
#Thu Apr 15 00:14:53 CEST 2021
|
||||
build.number=2
|
||||
|
|
|
@ -64,7 +64,7 @@ public class CancelPreviousInputHook extends Hook
|
|||
{
|
||||
boolean result;
|
||||
|
||||
if (StringsUtils.equalsAnyIgnoreCase(message, "!cancelprevious", "!oops", "!oups"))
|
||||
if (StringsUtils.containsAnyIgnoreCase(message, "!cancelprevious", "!oops", "!oups"))
|
||||
{
|
||||
logger.info("!cancelprevious/!oops caught.");
|
||||
|
||||
|
|
|
@ -91,8 +91,7 @@ public class HelpHook extends Hook
|
|||
bot.sendMessage(sender, " !fin : terminer la revue en cours");
|
||||
bot.sendMessage(sender, " !stop : abandonner la revue en cours");
|
||||
bot.sendMessage(sender, " ");
|
||||
bot.sendMessage(sender,
|
||||
"Autres commandes : !anniv, !bonjour, !chrono, !date, !hello, !licence, !manquants, !merci, !record, !salut, !stats, !status, !version");
|
||||
bot.sendMessage(sender, "Autres commandes : !bonjour, !date, !hello, !licence, !manquants, !merci, !record, !salut, !stats, !version");
|
||||
|
||||
result = true;
|
||||
}
|
||||
|
|
|
@ -20,7 +20,6 @@ package org.april.hebdobot.bot.hooks;
|
|||
|
||||
import java.io.File;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.april.hebdobot.HebdobotException;
|
||||
import org.april.hebdobot.bot.Hebdobot;
|
||||
import org.april.hebdobot.bot.stats.ReviewDatas;
|
||||
|
@ -69,7 +68,7 @@ public class RecordHook extends Hook
|
|||
{
|
||||
boolean result;
|
||||
|
||||
if (StringUtils.equalsIgnoreCase(message, "!record"))
|
||||
if (message.equals("!record"))
|
||||
{
|
||||
logger.info("!record caught.");
|
||||
|
||||
|
|
|
@ -20,7 +20,6 @@ package org.april.hebdobot.bot.hooks;
|
|||
|
||||
import java.io.File;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.april.hebdobot.HebdobotException;
|
||||
import org.april.hebdobot.bot.Hebdobot;
|
||||
import org.april.hebdobot.bot.stats.ReviewDatas;
|
||||
|
@ -69,7 +68,7 @@ public class StatsHook extends Hook
|
|||
{
|
||||
boolean result;
|
||||
|
||||
if (StringUtils.equalsIgnoreCase(message, "!stats"))
|
||||
if (message.equals("!stats"))
|
||||
{
|
||||
logger.info("!stats caught.");
|
||||
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
*/
|
||||
package org.april.hebdobot.bot.hooks;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.april.hebdobot.HebdobotException;
|
||||
import org.april.hebdobot.bot.Hebdobot;
|
||||
import org.april.hebdobot.util.BuildInformation;
|
||||
|
@ -65,7 +64,7 @@ public class VersionHook extends Hook
|
|||
{
|
||||
boolean result;
|
||||
|
||||
if (StringUtils.equalsIgnoreCase(message, "!version"))
|
||||
if (message.equals("!version"))
|
||||
{
|
||||
logger.info("!version caught.");
|
||||
bot.sendMessage(new BuildInformation().toString());
|
||||
|
|
Loading…
Reference in New Issue
Block a user