Releases: yeuai/botscript
Releases · yeuai/botscript
v1.8.0
New Features
Usage:
> chatgpt
# definition
- api-key
- api-url
- api-stream
Bugfixes and Improvement
- Upgrade lib dependencies
- upgrade typescript 4.8.2
- upgrade mocha ^10
- fix jexl: this.context createExpression (this context is null)
v1.7.2
v1.7.1
v1.7.0
New Features
- Add identifier to context, request
- Add request scope:
contexts
,$flows
- New api: Create
newRequest()
from context
Bugfixes and Improvement
- Fix conditional reply (with new syntax)
- Fix undefined references when request isFlowing but context does not contain flow (leads to unable to discover dialogue)
- Support multiple (AND) conditions for plugins
v1.6.3
v1.6.2
v1.6.1
New Features
- Command supports all http methods: get, post, put, delete, options, head
Bugfixes and Improvement
- Cleanup logs
Example
@ service1 put /api/http/put
@ service2 delete /api/http/delete
+ put me
* true @> service1
- Result $message
+ delete me
* true @> service2
- Result $message2
v1.6.0
New Features
- Add new directive /plugin
- Support directive /plugin code is written in botscript document, so user has ability to create plugin from BotScript.AI platform without code
- Support directive /plugin run in node and browser
Bugfixes and Improvement
- Refactor struct directive paring
- Update readme
Example
/plugin: test
```js
req.variables.today = new Date().getDate();
req.variables.day = new Date().getDay();
# add current year ??
req.variables.year = new Date().getFullYear();
```
> test
+ howdy
- Today is $today