Skip to content
This repository has been archived by the owner on Jul 10, 2019. It is now read-only.
/ gifchat Public archive

gifphy bot for hipchat

License

Notifications You must be signed in to change notification settings

fent/gifchat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gifchat

A giphy bot for hipchat. Uses the webhook endpoint endpoint in order to be realtime.

Install

$ git clone [email protected]:fent/gifchat.git
$ cd gifchat
$ npm install
$ cp tmp.config.json config.json
$ # edit the config.json file with your auth keys and host.
$ npm start

config.json

{
  // Needed to create webhooks, must have admin privileges for the room.
  "webhooks_token": "",

  // List of rooms along with their auth tokens, which are per room.
  // Can be generated here: https://hipchat.com/rooms
  "rooms": {
    "test": "",
    "product": ""
  },
  "port": 5000,

  // Needed for webhooks.
  "host": "http://myhost.com:5000",

  // Each command gets their own config.
  "commands": {
    "gif": {
      "enabled": true,

      // Can be yellow, red, green, purple, gray, random.
      "color": "gray",

      // If html format, will post the gif as an image tag that cannot be hidden.
      // With text format, a link will be posted and it will appear as if a
      // regular user has posted a link to a gif.
      "format": "html"
    }
  }
}

License

MIT

About

gifphy bot for hipchat

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published