mirror of
https://github.com/SillyTavern/Extension-Variables.git
synced 2026-10-15 13:32:11 +00:00
Simple plugin showcasing the capabilities of handlebars and chat metadata in extensions.
- JavaScript 100%
| index.js | ||
| LICENSE | ||
| manifest.json | ||
| README.md | ||
Extension-Variables
Simple plugin showcasing the capabilities of handlebars and chat metadata in extensions.
How to use
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.
FAQ
- 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.