Compare commits
3 Commits
9f0e09b8e6
...
03103efa35
Author | SHA1 | Date |
---|---|---|
Christian P. MOMON | 03103efa35 | |
Christian P. MOMON | ef22bbc593 | |
Christian P. MOMON | d00ba4c40a |
|
@ -1,3 +1,3 @@
|
|||
#Build Number for ANT. Do not edit!
|
||||
#Sun Apr 18 03:16:03 CEST 2021
|
||||
build.number=3
|
||||
#Mon Apr 19 04:55:56 CEST 2021
|
||||
build.number=4
|
||||
|
|
|
@ -415,36 +415,12 @@ public class Hebdobot extends PircBot
|
|||
|
||||
String text = message.trim();
|
||||
|
||||
if (StringUtils.equalsIgnoreCase(text, "!vaten"))
|
||||
{
|
||||
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("!"))
|
||||
if (text.startsWith("!"))
|
||||
{
|
||||
logger.info("!??? caught.");
|
||||
|
||||
// Command unknown.
|
||||
sendMessage(sender + ", command unknown: " + text);
|
||||
sendMessage(sender, "vos commandes dans le salon public");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -31,11 +31,9 @@ public abstract class Hook
|
|||
/**
|
||||
* Attempt help.
|
||||
*
|
||||
* @param bot
|
||||
* the bot
|
||||
* @param message
|
||||
* the message
|
||||
* @return true, if successful
|
||||
* @param string
|
||||
* the string
|
||||
* @return the string list
|
||||
* @throws HebdobotException
|
||||
* the hebdobot exception
|
||||
*/
|
||||
|
|
|
@ -62,11 +62,9 @@ public class Hooker
|
|||
/**
|
||||
* Attempt help.
|
||||
*
|
||||
* @param bot
|
||||
* the bot
|
||||
* @param message
|
||||
* the message
|
||||
* @return true, if successful
|
||||
* @return the string list
|
||||
* @throws HebdobotException
|
||||
* the hebdobot exception
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue