commit | 4ac198dad7ffa6e0f0207fc9104947d09e4ca81d | [log] [tgz] |
---|---|---|
author | Matt Rutkowski <mrutkows@us.ibm.com> | Wed Jan 25 13:54:53 2017 -0600 |
committer | GitHub <noreply@github.com> | Wed Jan 25 13:54:53 2017 -0600 |
tree | 6bf91d14d5c95f969e7fc8375183125c04ccfb21 | |
parent | 701b411e5beebe7bb9197e4f49963a4580f55049 [diff] |
Create CONTRIBUTING.md
This repository contains proof-of-concept-quality code to deploy a Slackbot with the capability to run OpenWhisk actions.
Copy src/main/resources/application.conf.template
to src/main/resources/application.conf
and fill in the credentials as indicated in the comments.
Run slack.whisk.Main
.
You can run either from sbt
directly, or use sbt eclipse
to generate an Eclipse project and create a run configuration from there.
(Assuming your bot is called @whiskbot
.)
Send a run command either as a direct message, or using a mention in a channel where the bot was invited:
@whiskbot: please run this for me: ```function main(args) { return { "greeting": "Hello " + args.name + "!" }; }``` ```{ "name" : "visitor" }```
The message needs to contain the keywords “run”, “please”, and two triple-quoted blocks; one for the JavaScript code, and one for the action payload.