Giter Site home page Giter Site logo

hubot-jabbr's Introduction

Hubot Jabbr Adapter

Description

A Hubot adapter for Jabbr

Hubot Compatibility

  • Use version 0.2.x if you are using Hubot 2.3.x
  • Use version 0.3.x if you are using Hubot 2.4.x
  • Use version 0.4.x if you are using Hubot 2.6.x
  • All other hubot versions are not supported

Installation

  • Add hubot-jabbr as a dependency in your hubots package.json
  • Run npm install in your hubots directory.
  • Run hubot with bin/hubot -a jabbr

Usage

You need to set a few environment variables in order for it to work

NB If the nick isn't already registered on the jabbr host you are using, the nick will need to be registered first.

GNU/Linux

% export HUBOT_JABBR_HOST="http://yourjabbrhosthere.com"

% export HUBOT_JABBR_NICK="HubotNick"

% export HUBOT_JABBR_PASSWORD="ThePassword"

% export HUBOT_JABBR_ROOMS="Room1,Room2,Room3"

# Optional, you can choose the transport to use to connect to the server with. Default is serverSentEvents
% export HUBOT_JABBR_TRANSPORT="longPolling"

# Optional, you can set the gravatar with the following:
% export HUBOT_JABBR_GRAVATAR="[email protected]"

Heroku

% heroku config:add HUBOT_JABBR_HOST="http://yourjabbrhosthere.com"

% heroku config:add HUBOT_JABBR_NICK="HubotNick"

% heroku config:add HUBOT_JABBR_PASSWORD="ThePassword"

% heroku config:add HUBOT_JABBR_ROOMS="Room1,Room2,Room3"

# Optional, you can choose the transport to use to connect to the server with. Default is serverSentEvents
% heroku config:add HUBOT_JABBR_TRANSPORT="longPolling"

# Optional, you can set the gravatar with the following:
% heroku config:add HUBOT_JABBR_GRAVATAR="[email protected]"

Supported transports

These transports are currently supported by njabbr:

  • serverSentEvents - Uses SSE to connect to the server if the server supports it.
  • longPolling - Uses long polling (i.e. a time based poll of the server info)

Contributing

Contributions are welcome. To get your work considered please do the following:

  1. Fork this project
  2. Create a feature/bug fix branch
  3. Hack away, committing often and frequently
  4. Push your branch up to your fork
  5. Submit a pull request

License

This program is free software. It comes without any warranty, to the extent permitted by applicable law. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See http://sam.zoy.org/wtfpl/COPYING for more details.

hubot-jabbr's People

Contributors

dannylloyd avatar sgwill avatar smoak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

hubot-jabbr's Issues

There is no reply method

Lots of hubot scripts use msg.reply, but the method doesn't exist in this adapter, thus those scripts won't work without changing msg.reply to msg.send.

npm version not latest??

Hi,

I just tried to use the hubot-jabbr and for some reason when I install hubot-jabbr from the npm repository it doesn't work with the latest hubot version while it works if I manually clone the latest version from this repo here.

Might it be the case that the latest version has not (yet) been published on the npm repo?

Not working anymore with hubot 2.3.0

Stated in the Changelog of Hubot for v2.3.0

Extracted remaining classes into their own files - tombell
Note this is a breaking change for adapters. Adapters are going to want to use the following code snippet for requiring classes from hubot.

{Adapter,Robot} = require 'hubot'

hubot can send message, but cannot receive anything

I installed hubot and jabbr on my windows 7 machine and tried to connect hubot to jabbr using hubot-jabbr.

Hubot were able to authenticate and send messages, but did not receive any messages from jabbr.

After experimenting a lot, finally figured out that changing the transport from server sent events to longPolling solved my problem.

I am not sure why this is happening, but maybe it would be nice to mention this in the documentation or change the default transport to longPolling or just capture the issue and the workaround here.

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.