Linkai bot is compatible with the role plugin.

This commit is contained in:
6vision
2024-12-02 12:13:26 +08:00
parent afc753e1d2
commit 33a69a7907

View File

@@ -180,6 +180,7 @@ class Role(Plugin):
e_context["reply"] = reply
e_context.action = EventAction.BREAK_PASS
else:
e_context["context"]["generate_breaked_by"] = EventAction.BREAK
prompt = self.roleplays[sessionid].action(content)
e_context["context"].type = ContextType.TEXT
e_context["context"].content = prompt