Skip to content

v1.6.0

Compare
Choose a tag to compare
@vunb vunb released this 24 Mar 12:03
· 125 commits to master since this release
98ec77a

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