Closed hailiang-wang closed 7 years ago
After checking the database, I think it is because even in the GetReply, it hits a reply/conversation thread. But in this reply object, it gets no gambits
, it should be something wrong with the ss-parser or importData.
After checking data.json, the conversation is not built into data.json.
Due to some reason, the ~yes, ~no, *() are not mapped with filter __preview_question_kickoff**. Actually, their gambit has none filter.
https://github.com/superscriptjs/superscript/wiki/Conversations mentions:
Please note that:
In conversations like this, we always try to match forward, but once there is no more matches we don't walk back up the tree, we reset back to the Random Topic. Also, * in conversation threads have the same weight as topic level * wildcards.
So can you try to define
Just a thought - the position might be causing a problem for you.
There’s a couple of things going on here:
1) Before v1, you would have been able to do this:
+ Hi there
- Goodbye cruel world
+ I am happy
% Goodbye
- Alright
So despite the fact that Goodbye
should really be Goodbye *
, it will still match as part of a conversation. My thinking was that if you need a star, you should really be explicit about this. So the breaking change made was the match the entirety of the string, from start to finish.
Now, goodbye
no longer matches goodbye cruel world
unless you specifically put a star in.
In your example, this means that:
% __preview_question_kickoff
Should become
% {@__preview_question_kickoff}
So it exactly matches the reply.
2) There’s an issue itself with matching conversation threads. There’s a bug in the new processTags logic which, upon seeing a redirect of some kind, overrides the root ID with the new reply. Commenting out that line fixes this case, but breaks others, so I’ll be doing a little bit of work to fix this in the next couple days.
This should now work. It now tracks all the matched IDs in a reply instead of just the last one, so all the relevant conversations are checked, even if they're part of a redirect of some kind. Cheers!
👍
Such a conversations script does not work.
When running in bot instance, SS:GetReply prints out -
Expected Behavior
Current Behavior
Possible Solution
Steps to Reproduce (for bugs)
1. 2. 3. 4.
Context
Your Environment