Git Product home page Git Product logo

hubot-gitter2's Introduction

hubot-gitter2

Improved Hubot adapter for Gitter


There was already one adapter hubot-gitter but after trying to fix many missing things from it, I decided to write one from scratch.

Gitter chat

At the time this is written, here is the advantages of this one:

  • namespaced environment variables for the configuration
  • handling robot.send room: 'room id or uri', 'my message'
  • gathering information from users in all rooms correctly
  • not handling messages that the bot itself is sending

Installation

  • install Hubot and CoffeeScript: npm install -g hubot coffee-script
  • create your bot and install its dependencies:
npm install -g yo generator-hubot
mkdir -p my-bot
yo hubot
  • save hubot-gitter2 as dependency: npm install --save hubot-gitter2
  • start the bot using the right adapter: HUBOT_GITTER2_TOKEN=<your token> ./bin/hubot -a gitter2 --name <your bot name>
    • HUBOT_GITTER2_TOKEN: get your personal token there after sign-in
    • the bot will automatically listen on the rooms it has joined.

Troubleshooting

  • If your bot is not responding to mentions, make sure hubot was started with the same --name parameter as its GitHub username.

Changelog

  • 0.1.3 - 2014-08-20

    • Added the ability to ignore all rooms except given one(s) for testing with HUBOT_GITTER2_TESTING_ROOMS
    • Implemented a room ignore-list to not handle messages from some rooms with HUBOT_GITTER2_IGNORE_ROOMS
  • 0.1.2 - 2014-08-16

    • Re-wrote everything in a cleaner, object oriented way
    • Better handling of users
    • Auto-listening on the rooms the bot's user has already joined
    • Do not overwrite brain user names, only update if not set
  • 0.0.3 - 2014-08-11

    • First functional pre-version

hubot-gitter2's People

Contributors

aleksueir avatar bobbyrne01 avatar fiws avatar huafu avatar jzaefferer avatar koron avatar raine avatar

Watchers

 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.