From 54669590ab2d5498cf2d315a18a5d9aab560ad52 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Fri, 16 Apr 2021 19:35:37 +0200 Subject: [PATCH] Improved !help message. --- src/org/april/hebdobot/bot/hooks/HelpHook.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/april/hebdobot/bot/hooks/HelpHook.java b/src/org/april/hebdobot/bot/hooks/HelpHook.java index bfc3fb4..790112c 100644 --- a/src/org/april/hebdobot/bot/hooks/HelpHook.java +++ b/src/org/april/hebdobot/bot/hooks/HelpHook.java @@ -44,8 +44,8 @@ public class HelpHook extends Hook logger.info("!help caught."); // Help. - bot.sendMessage(sender, "Bienvenue " + sender); - bot.sendMessage(sender, "Je suis " + bot.getName() + ", le robot de gestion des revues hebdomadaires de l'April."); + bot.sendMessage(sender, + String.format("Bienvenue %s. Je suis %s, le robot de gestion des revues hebdomadaires de l'April.", sender, bot.getName())); bot.sendMessage(sender, "Voici les commandes que je comprends :"); bot.sendMessage(sender, " "); bot.sendMessage(sender, " !aide,!help : afficher cette aide");