Simple plugin showcasing the capabilities of handlebars and chat metadata in extensions.
Type the following variables in the user messages or have these generated by the AI bots.
{{getvar "foo"}}- gets replaced with the value of the variable "foo".{{setvar "foo", "bar"}}- sets a value of "bar" to the variable "foo".{{listvar}}- gets replaced with the comma-separated list of all the previously defined variables.
- Quotes around the strings are important.
- Can't be used in the A/N, WI, or character cards. Only in the chat messages!
- Variables are persisted per chat, and saved to the chat_metadata object.