Commit 4e0c42b
Fix AIML converter to preserve template variables in random options
The converter was using get_element_text() for <li> elements inside
<random> tags, which stripped out bot/get/set tags. Changed to use
parse_template() instead.
Before: "I am living in ."
After: "I am living in {{BOT:location}}."
Regenerated alice-patterns-full.json with complete templates.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <[email protected]>1 parent d7efeac commit 4e0c42b
File tree
3 files changed
+366
-365
lines changed- demos/15-chatbot-evolution
- data
3 files changed
+366
-365
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| 174 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
| 51 | + | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
0 commit comments