Copy to ClipboardCopied!Toggle word wrapToggle overflow
ChatBotLogic 是一个实现通用 String-to-String 方法的简单 bean。
public class ChatBotLogic {
public String chatBotProcess(String message) {
if( "do-not-reply".equals(message) ) {
return null; // no response in the chat
}
return "echo from the bot: " + message; // echoes the message
}
}
public class ChatBotLogic {
public String chatBotProcess(String message) {
if( "do-not-reply".equals(message) ) {
return null; // no response in the chat
}
return "echo from the bot: " + message; // echoes the message
}
}
Copy to ClipboardCopied!Toggle word wrapToggle overflow