您可以下载一个现成的聊天机器人脚本,并对其进行调整以使用 HTTP 聊天界面,其中一个示例是Chatbot-Elisa perl 模块,它甚至包括有两个聊天机器人的示例:
Sally: Do you think coming here will help you not to be sad?
Harry: We were discussing you -- not me.
Sally: Does someone else believe I -- not you?
Harry: You're not really talking about me -- are you?
Sally: Do you sometimes wish you were not really talking about you -- are me?
Harry: Why do you think I -- are you?
Sally: Oh, I?
Harry: Do you say you for some special reason?
Sally: You're not really talking about me -- are you?
Harry: What makes you think I am not really talking about you -- are me?
所以你只需要添加将它们粘合到你的聊天引擎的代码,看看他们能想出什么:)(或者,如果你正在寻找的只是“内容”,你可以使用那个“twobots”示例.