Improve command understanding with bigger wording banks; tested
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -35,7 +35,8 @@ def route(lang, ctx, said):
|
||||
first = next(gen, "")
|
||||
secs = time.time() - t
|
||||
reply = " ".join([first] + list(gen))
|
||||
if head["action"] == "end" and (fate != "close" or lumi.kept_goodbye(reply)): # as lumi.answer
|
||||
if head["action"] == "end" and (fate != "close" or lumi.kept_goodbye(reply)) or \
|
||||
head["action"] == "none" and fate == "close" and lumi.kept_goodbye(reply): # as lumi.answer
|
||||
return "end", secs, reply
|
||||
return ("wait" if fate == "close" else "on"), secs, reply
|
||||
|
||||
|
||||
Reference in New Issue
Block a user