hubot javascript的安装与使用示例
hubot-javascript描述用于NPM的打包安装。可以通过以下命令安装:npm install --save hubot-javascript
,并将["hubot-javascript"]
添加到您的external-scripts.json中。以下是一些示例:
-
hubot js [1,2,3].map(function (n) { return n * n; })
-> [1, 4, 9] -
hubot run String.fromCharCode(72, 85, 66, 79, 84)
-> 'HUBOT' -
hubot sandbox 0.1 + 0.2
-> 0.30004
下载地址
用户评论