chatterbot 的响应功能没有像我想的那样工作

the chatterbot's response function doesn't work as i thought

所以我将 discord bot 与 chatterbot 相结合。 我尝试使用 get_response() 函数从机器人那里得到响应,我像这样使用它 response = bot.get_response(input) 但它似乎只接受来自控制台的输入而不接受字符串输入。如果我从控制台输入,它会将结果放入响应字符串中。 我没有任何错误。

我已经搜索了很多,到目前为止我还没有找到任何有用的东西。

有什么想法吗? (另外,如果您想查看完整代码,请问我)

试试这个:

input_adapter = 'chatterbot.input.VariableInputTypeAdapter',

而不是:

input_adapter = 'chatterbot.input.TerminalAdapter'