8000 Release 13.2 · ChatScript/ChatScript · GitHub
[go: up one dir, main page]

Skip to content

13.2

Compare
Choose a tag to compare
{{ refName }}
@ChatScript ChatScript released this 13 Jun 13:36
· 7 commits to master since this release

Note- you will be forced to recompile your bot when you run this version initially.
Formats for compiled data have changed.

  1. ^load() removed

  2. JSON autoindirects a get or assign expression of a variable whose value is itself a variable.
    if $x = '$y' and $y points to a json structure, then $x is auto and $x.val means $y.val .

  3. Advanced replace substitution- you can name a pattern (which can extend over multiple lines)
    that can conditionally change the
    matched word into any other word or remove it or do nothing.
    Matching starts with _0 having been assigned to the location of the word/phrase to replace.
    e.g.:
    replace: bubble_tea ([
    (is $$cs_replace:=2)
    (has $$cs_replace:=null)
    (@_0- *~2 my $$cs_replace:=1)
    ])
    "bubble tea is" -> 2 is
    "bubble tea has" -> has
    "my green bubble tea loves" -> my green 1 loves
    You cannot use concepts in these patterns, nor the canonical forms of words.

0