Giter Site home page Giter Site logo

qubot-hipchat's Introduction

qubot - Simple chat bot for HipChat

Code Climate

Prerequisite

  • Ruby 2.1.0
  • Foreman

Local Setup

Configuration

Copy sample environment file to .env,

$ cp sample.env .env

and edit.

XMPP_JID="***@chat.hipchat.com/bot"
XMPP_NAME="First Last"
XMPP_NICK="First"
XMPP_PASSWORD="***"
XMPP_ROOMS="***@conf.hipchat.com, ***@conf.hipchat.com"

You can investigate XMPP/Jabber account information at https://YOURS.hipchat.com/account/xmpp.

Setup Foreman

Install Heroku Toolbelt or foreman.gem

Bundle and Run

$ bundle install
$ foreman start
04:10:00 bot.1  | started with pid 76252
04:10:01 bot.1  | D, [2012-12-13T04:10:01.199111 #76252] DEBUG -- : connect
04:10:04 bot.1  | W, [2012-12-13T04:10:04.240215 #76252]  WARN -- : running

Ctrl-C to exit.

Deployment to Heroku

$ heroku create APP_NAME
$ heroku config:add \
  XMPP_JID="..." \
  XMPP_NAME="..." \
  XMPP_NICK="..." \
  XMPP_PASSWORD="..." \
  XMPP_ROOMS="..."
$ git push heroku master
$ heroku ps:scale bot=1

License

MIT License.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

qubot-hipchat's People

Contributors

juno avatar

Stargazers

kaiinui avatar nagane avatar Chun-wei Kuo avatar OKI Yukihiro avatar Hiroki Matsue avatar  avatar hirakiuc avatar KAWACHI Takashi avatar june29 avatar Atsuya Takagi avatar Tomohiro Taira avatar rono23 avatar

Watchers

 avatar Hiroshi Asakura avatar ruedap avatar James Cloos avatar qnyp bot 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.