Skip to content

kcjpop/hubot-gitter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

What?

Gitter A simple Hubot adapter for gitter.im

How?

TOKEN=<your Gitter Personal Access Token> ROOM="org/room1,org2/room3" ./bin/hubot -a gitter

You can let your bot join multiple rooms, each separates by comma (,)

  • (Optional) Edit your package.json and add this to scripts
{
  "scripts": {
    "start": "./bin/hubot --name tien -a gitter"
  }
}

Then you can start your bot with npm start. This is useful for deployment with Zeit (see below).

Deployment with Zeit

You can deploy your bot for free with Zeit. Assume that you are currently in your bot folder, the deploy command is:

now -e TOKEN=<your Gitter Personal Access Token> -e ROOM="org/room1,org2/room3" 

Zeit will automatically run npm start. Please note that Your code and logs will be made public. so be careful there.

It is possible that you would have multiple deployment with Zeit, resulting multiple instances of your bot joining the same rooms. To cure this, use now ls and now rm to delete old deployment.

Changelog

1.0.0

  • Upgrade after a long time
  • BREAKING: ROOM_ID was removed. Use ROOM instead.

0.0.2

  • Utilize module node-gitter to interact with Gitter API
  • Allow bot to join multiple rooms
  • Change ROOM_ID to ROOM for shorter param name. ROOM_ID is still usable.

0.0.1

  • Initial release

About

A simple Hubot adapter for gitter.im

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published