Add directive to import plugin
Closed this issue · 0 comments
vunb commented
BotScript should support to import a custom plugin
Syntax: /plugin: name
For example:
/plugin: addToday
# access properties from: req, res, ctx
const {message} = req;
req.today = new Date().getDate()
/plugin: another plugin
# access properties from: req, res, ctx
# do whatever you want