diff --git a/public/plugins/chatbot/classes/ChatbotEventSubscription.java b/public/plugins/chatbot/classes/ChatbotEventSubscription.java index b3049fb5..3b7b0f54 100644 --- a/public/plugins/chatbot/classes/ChatbotEventSubscription.java +++ b/public/plugins/chatbot/classes/ChatbotEventSubscription.java @@ -241,6 +241,10 @@ public class ChatbotEventSubscription { sugg.put("text", faqReply.getString("post")); sugg.put("type", "qlist"); suggs.put(sugg); + // set the maximum suggest list as only seven items + if(i == 6){ + break; + } } if (suggs.length() > 0) { // TODO set help message on View Page