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