Compare commits

...

3 Commits

Author SHA1 Message Date
03103efa35 Build 2.11.3 2021-04-19 04:56:08 +02:00
ef22bbc593 Fixed private messages feature. 2021-04-19 04:32:47 +02:00
d00ba4c40a Made Javadoc review. 2021-04-18 03:17:44 +02:00
4 changed files with 8 additions and 36 deletions

View File

@ -1,3 +1,3 @@
#Build Number for ANT. Do not edit! #Build Number for ANT. Do not edit!
#Sun Apr 18 03:16:03 CEST 2021 #Mon Apr 19 04:55:56 CEST 2021
build.number=3 build.number=4

View File

@ -415,36 +415,12 @@ public class Hebdobot extends PircBot
String text = message.trim(); String text = message.trim();
if (StringUtils.equalsIgnoreCase(text, "!vaten")) if (text.startsWith("!"))
{
logger.info("!die caught.");
// Die.
if (this.review == null)
{
try
{
sendMessage(sender + ", ok bye.");
sendMessage(sender, "ok bye.");
Thread.sleep(1000);
System.exit(0);
}
catch (InterruptedException exception)
{
logger.warn("Pause abort: " + exception.getMessage());
}
}
else
{
sendMessage("% Une revue est en cours, abandon impossible.");
}
}
else if (text.startsWith("!"))
{ {
logger.info("!??? caught."); logger.info("!??? caught.");
// Command unknown. // Command unknown.
sendMessage(sender + ", command unknown: " + text); sendMessage(sender, "vos commandes dans le salon public");
} }
else else
{ {

View File

@ -31,11 +31,9 @@ public abstract class Hook
/** /**
* Attempt help. * Attempt help.
* *
* @param bot * @param string
* the bot * the string
* @param message * @return the string list
* the message
* @return true, if successful
* @throws HebdobotException * @throws HebdobotException
* the hebdobot exception * the hebdobot exception
*/ */

View File

@ -62,11 +62,9 @@ public class Hooker
/** /**
* Attempt help. * Attempt help.
* *
* @param bot
* the bot
* @param message * @param message
* the message * the message
* @return true, if successful * @return the string list
* @throws HebdobotException * @throws HebdobotException
* the hebdobot exception * the hebdobot exception
*/ */