Compare commits
3 Commits
9f0e09b8e6
...
03103efa35
Author | SHA1 | Date | |
---|---|---|---|
03103efa35 | |||
ef22bbc593 | |||
d00ba4c40a |
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user