hubot-orky
v0.1.12
Published
Hubot adapter for orky
Downloads
3
Readme
Hubot-Orky
What is Hubot-Orky?
Hubot-Orky is a Hubot adapter that allows instances of Hubot to communicate with an Orky instance.
What is Orky?
Orky is a bot you can deploy on BotFramework that makes managing Hubot instances on BotFramework much easier.
If you are interested in deploying an instance of Orky or playing with the demo instance, instructions can be found here.
Hubot-Orky installation guide
This guide can help you create your own Hubot instance from scratch. You can then take this Hubot instance and register it with an Orky instance and talk to it in any BotFramework supported channel (with some enhancements if you use the Microsoft Teams channel).
Requirements:
Instructions
- Run this in your node-capable terminal
npm install -g yo generator-hubot
yo hubot
npm install coffee-script --save
Fill in the prompts appropriatly. For Adapter type 'orky'
Once this is done you should have a working Hubot instance capable of talking to an Orky instance. Now you have to add it to your team or chat and configure it with secrets. Go to a team in Microsoft Teams or a chat thread with Orky in any other BotFramework channel where you want to add the Hubot instance.
@Orky add <botname>
- Take the id and secret that Orky gave you and go back to your node-capable terminal. If you are using the
bash
shell, type:
export ORKY_URI=<path to your Orky instance>
export BOT_ID=<id>
export BOT_SECRET=<secret>
./bin/hubot -a orky
If you are using Windows cmd
shell, type:
set ORKY_URI=<path to your orky instance>
set BOT_ID=<id>
set BOT_SECRET=<secret>
./bin/hubot -a orky
- You output should look like this.
[Fri Aug 25 2017 10:13:09 GMT-0700 (Pacific Daylight Time)] INFO Created instance of Orky Adapter with config: {
"OrkyUri": "<YOUR ORKY INSTANCE URI",
"BotId": "<YOUR BOT ID>",
"BotSecret": "<YOUR BOT SECRET>"
}
[Fri Aug 25 2017 10:13:09 GMT-0700 (Pacific Daylight Time)] INFO Run
[Fri Aug 25 2017 10:13:09 GMT-0700 (Pacific Daylight Time)] INFO Connected to Orky server at <YOUR ORKY INSTANCE URI>
[Fri Aug 25 2017 10:13:09 GMT-0700 (Pacific Daylight Time)] INFO Registration successful as <YOUR BOT NAME> (<YOUR BOT ID>)
- Since the stock Hubot yeoman generator adds some default scripts you can test your local bot in one of the channels of the team in Microsoft Teams or chat thread in any other BotFramework channel. Type
@Orky tell <botname> time
Orky should respond with the local time of the machine running Hubot.
Everything else is the same as regular Hubot.