GithubHelp home page GithubHelp logo

runt18 / hubot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hubotio/hubot

0.0 2.0 0.0 999 KB

A customizable, kegerator-powered life embetterment robot.

Home Page: http://hubot.github.com

License: MIT License

Makefile 0.40% CoffeeScript 99.46% Shell 0.14%

hubot's Introduction

Hubot

This is a version of GitHub's Campfire bot, hubot. He's pretty cool.

You'll probably never have to hack on this repo directly.

Instead this repo provides a library that's distributed by npm that you simply require in your project. Follow the instructions below and get your own hubot ready to deploy.

Getting your own

Make sure you have node.js and npm (npm comes with node v0.6.3+) installed.

Download the latest version of hubot.

Then follow the instructions in the README in the extracted hubot directory.

Adapters

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 the hubot wiki for the available ones and how to create your own.

Please submit issues and pull requests for third party adapters to the adapter repo not this repo unless it's the Campfire or Shell adapter.

hubot-scripts

Hubot ships with a number of default scripts, but there's a growing number of extras in the hubot-scripts repository. hubot-scripts is a way to share scripts with the entire community.

Check out the README for more help on installing individual scripts.

HTTP Listener

Hubot has a HTTP listener which listens on the port specified by the PORT environment variable.

You can specify routes to listen on in your scripts by using the router property on robot.

module.exports = (robot) ->
  robot.router.get "/hubot/version", (req, res) ->
    res.end robot.version

There are functions for GET, POST, PUT and DELETE, which all take a route and callback function that accepts a request and a response.

Testing hubot locally

Install all of the required dependencies by running npm install.

It's easy to test scripts locally with an interactive shell:

% export PATH="node_modules/.bin:$PATH"
% bin/hubot

... and to run unit tests:

% make test

hubot's People

Contributors

anaisbetts avatar andyfowler avatar assaf avatar atmos avatar benburkert avatar cesar-zz avatar ejfinneran avatar elliotttf avatar eventualbuddha avatar excedrin avatar jimeh avatar jnewland avatar kneath avatar maddox avatar madzak avatar markpasc avatar markstory avatar mathildelemee avatar mexitek avatar oinutter avatar roustem avatar russelldavis avatar skalnik avatar technicalpickles avatar technoweenie avatar titanous avatar tmm1 avatar tombell avatar unixcharles avatar vrtak-cz avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.