Added !merci command.
This commit is contained in:
parent
6cd93b9334
commit
4f3a84142e
1 changed files with 11 additions and 0 deletions
|
@ -518,6 +518,13 @@ public class Hebdobot extends PircBot
|
|||
// Salutation command.
|
||||
sendMessage(sender + ", bonjour \\o/");
|
||||
}
|
||||
else if (StringsUtils.equalsAnyIgnoreCase(text, "!merci"))
|
||||
{
|
||||
logger.info("!merci caught.");
|
||||
|
||||
// Salutation command.
|
||||
sendMessage(sender + ", de rien \\o/");
|
||||
}
|
||||
else if (text.startsWith("!"))
|
||||
{
|
||||
logger.info("!??? caught.");
|
||||
|
@ -536,6 +543,10 @@ public class Hebdobot extends PircBot
|
|||
{
|
||||
sendMessage(sender + ", bonjour \\o/");
|
||||
}
|
||||
else if ((StringsUtils.containsAnyIgnoreCase(text, "merci")) && (StringUtils.containsIgnoreCase(text, "hebdobot")))
|
||||
{
|
||||
sendMessage(sender + ", de rien \\o/");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue