You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
local question = msg.fromMsg:match(,"^[%s]*(.-)[%s]*$",msg.fromMsg:find("是")+#"是不是")
local answer = "是"
if(ranint(0,1)>0)then
answer = "并不是"
end
msg.answer = answer..(string.match(question,"^(.-)?$") or question)
if isFirstPerson then
return "{answer_yes_no_first_person}"
else
return "{answer_yes_no}"
end
机器人的“是不是”功能,在“是不是”后面的字符串包含大括号时,机器人将输出 Json 文本,如下所示:
The text was updated successfully, but these errors were encountered: