Bear is a chat bot built on the [Hubot][hubot] framework. It was initially generated by [generator-hubot][generator-hubot], and configured to be deployed on [Heroku][heroku] to get you up and running as quick as possible.
You can test your hubot by running the following.
You can start bear locally by running:
% bin/hubot
You'll see some start up output about where your scripts come from and a prompt:
[Sun, 04 Dec 2011 18:41:11 GMT] INFO Loading adapter shell
[Sun, 04 Dec 2011 18:41:11 GMT] INFO Loading scripts from /home/tomb/Development/hubot/scripts
[Sun, 04 Dec 2011 18:41:11 GMT] INFO Loading scripts from /home/tomb/Development/hubot/src/scripts
Hubot>
Then you can interact with bear by typing bear help.
bear> bear help
bear> animate me <query> - The same thing as `image me`, except adds a few
convert me <expression> to <units> - Convert expression to given units.
help - Displays all of the help commands that Hubot knows about.
...
% fig up
An example script is included at scripts/example.coffee, so check it out to
get started, along with the Scripting Guide.
For many common tasks, there's a good chance someone has already one to do just the thing.
There will inevitably be functionality that everyone will want. Instead of writing it yourself, you can check hubot-scripts for existing scripts.
To enable scripts from the hubot-scripts package, add the script name with
extension as a double quoted string to the hubot-scripts.json file in this
repo.
Hubot is able to load scripts from third-party npm package. Check the package's documentation, but in general it is:
- Add the packages as dependencies into your
package.json npm installto make sure those packages are installed- Add the package name to
external-scripts.jsonas a double quoted string
You can review external-scripts.json to see what is included by default.
Is in the redis link, with hubots brain.
Adapters are the interface to the service you want your hubot to run on. This can be something like Campfire or IRC. There are a number of third party adapters that the community have contributed. Check Hubot Adapters for the available ones.
If you would like to run a non-Campfire or shell adapter you will need to add
the adapter package as a dependency to the package.json file in the
dependencies section.
Once you've added the dependency and run npm install to install it you can
then run hubot with the adapter.
% bin/hubot -a <adapter>
Where <adapter> is the name of your adapter without the hubot- prefix.
Somewhere in a container environment running on docker. Looking at a Mesos cluster on ubuntu, with docker and consul for services and discovery. Marthon for long running jobs.