Giter VIP home page Giter VIP logo

hal's Introduction

HAL

Our Jabber chat bot. It's modelled after GitHub's Hubot but written in Python instead of CoffeeScript.

Requirements

  • unix-compatible operating system
  • make
  • Python 2.x >= 2.7
  • virtualenv

Running

  1. Clone the repository:

     git clone git://github.com/smarkets/hal.git
    
  2. Build the virtualenv (in projects directory):

     make virtualenv
    
  3. Run HAL

     ./env/bin/python main.py [--name HAL] [--adapter shell]
    

As you can see, there are 2 command line parameters (both optional):

  • name - the name under which bot appears in chatrooms
  • adapter - chat adapter to use

There's also a builtin HTTP server which can be used by plugins to offer some functions, it's configuration consists of the following variables:

  • HAL_HTTP_HOST - what address to bind listening socket to (0.0.0.0 listens on all interfaces, 127.0.0.1 allows access only from local machine), default: 127.0.0.1
  • HAL_HTTP_PORT - port to listen on, default: 8888

Adapters

Adapter takes care of bot's communication with event source and destination (in general - some chat room).

Shell

Allows use of HAL using operating system terminal. You simply run HAL and are presented with application's command prompt. To use some adapter you may need to specify additional environment variables.

Jabber

Provides bot support for Jabber/XMPP chat rooms.

Required environment variables:

  • HAL_JABBER_JID - jabber id
  • HAL_JABBER_PASSWORD - password
  • HAL_JABBER_ROOMS - comma separated list of rooms (currently no password-protected rooms supported)

Optional environment variables:

  • HAL_JABBER_CONFERENCE_SERVER - please specify if conference server is different than conference.JABBERIDSERVER

hal's People

Contributors

alexdias avatar jstasiak avatar

Watchers

 avatar  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.