Added !merci command.

This commit is contained in:
Christian P. MOMON 2018-01-21 07:54:09 +01:00
parent 6cd93b9334
commit 4f3a84142e

View File

@ -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
{