All Projects → litaio → lita-hipchat

litaio / lita-hipchat

Licence: MIT License
A HipChat adapter for Lita.

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to lita-hipchat

Lita
ChatOps for Ruby.
Stars: ✭ 1,663 (+4394.59%)
Mutual labels:  chatops, chatbot, lita
st2chatops
Packaging environment for building StackStorm chatops native packages
Stars: ✭ 26 (-29.73%)
Mutual labels:  chatops, xmpp, hipchat
lita-irc
An IRC adapter for Lita.
Stars: ✭ 19 (-48.65%)
Mutual labels:  chatops, lita, lita-adapter
Flottbot
A chatbot framework written in Go. All configurations are made in YAML files, or inside scripts written in your favorite language.
Stars: ✭ 175 (+372.97%)
Mutual labels:  chatops, chatbot
Cog
Bringing the power of the command line to chat
Stars: ✭ 910 (+2359.46%)
Mutual labels:  chatops, chatbot
Rboot
Rboot 是一个Go语言开发的一个简单、高效的 Chatops bot 框架
Stars: ✭ 50 (+35.14%)
Mutual labels:  chatops, chatbot
Poshbot
Powershell-based bot framework
Stars: ✭ 410 (+1008.11%)
Mutual labels:  chatops, chatbot
Errbot
Errbot is a chatbot, a daemon that connects to your favorite chat service and bring your tools and some fun into the conversation.
Stars: ✭ 2,605 (+6940.54%)
Mutual labels:  chatops, chatbot
Bolt Python
A framework to build Slack apps using Python
Stars: ✭ 190 (+413.51%)
Mutual labels:  chatops, chatbot
ansible-hubot
💬 Ansible role for Hubot
Stars: ✭ 63 (+70.27%)
Mutual labels:  chatops, hipchat
docker-errbot
Dockerfile for Err - the pluggable chatbot
Stars: ✭ 53 (+43.24%)
Mutual labels:  xmpp, hipchat
Botkube
An app that helps you monitor your Kubernetes cluster, debug critical deployments & gives recommendations for standard practices
Stars: ✭ 804 (+2072.97%)
Mutual labels:  chatops, chatbot
Awesome Chatops
🤖 A collection of awesome things about ChatOps – managing operations through a chat
Stars: ✭ 648 (+1651.35%)
Mutual labels:  chatops, chatbot
chef-lita
A Chef cookbook for installing Lita.
Stars: ✭ 17 (-54.05%)
Mutual labels:  chatops, lita
lita-confirmation
A Lita extension to require confirmation for commands.
Stars: ✭ 21 (-43.24%)
Mutual labels:  chatops, lita
Slacker
Slack Bot Framework
Stars: ✭ 495 (+1237.84%)
Mutual labels:  chatops, chatbot
Sactive Bot
😈 An extensible chat bot framework. sactive-bot is an evolution of the open source hubot project. - https://www.shipengqi.top/sactive-bot .
Stars: ✭ 212 (+472.97%)
Mutual labels:  chatops, chatbot
Yetibot
🤖 Extreme chatops bot for Slack and IRC 🔧 New contributors welcome 🏗
Stars: ✭ 311 (+740.54%)
Mutual labels:  chatops, chatbot
Webhook2telegram
🤖 A simple bot to translate JSON HTTP requests into Telegram push messages
Stars: ✭ 357 (+864.86%)
Mutual labels:  chatops, chatbot
lita-digitalocean
A Lita handler for managing DigitalOcean services.
Stars: ✭ 25 (-32.43%)
Mutual labels:  chatops, lita

lita-hipchat

Build Status Code Climate Coverage Status

lita-hipchat is an adapter for Lita that allows you to use the robot with HipChat.

Installation

Add lita-hipchat to your Lita instance's Gemfile:

gem "lita-hipchat"

Configuration

Values for all of the following attributes can be found on the "XMPP/Jabber info" page of the account settings on the HipChat website. A JID (Jabber ID) looks like "[email protected]".

Required attributes

  • jid (String) - The JID of your robot's HipChat account. Default: nil.
  • password (String) - The password for your robot's HipChat account. Default: nil.

Optional attributes

  • server (String) - The HipChat Server address. Override this with the full domain of your server if using a private HipChat Server installation. Default: "chat.hipchat.com"
  • debug (Boolean) - If true, turns on the underlying Jabber library's (xmpp4r) logger, which is fairly verbose. Default: false.
  • DEPRECATED - rooms (Symbol, Array) - An array of room JIDs that Lita should join upon connection. Can also be the symbol :all, which will cause Lita to discover and join all rooms. Default: nil (no rooms).
  • muc_domain (String) - The XMPP Multi-User Chat domain to use. Default: "conf.hipchat.com".
  • ignore_unknown_users (Boolean) - Messages generated through HipChat's API which don't come from a real user account will be ignored by the robot. With the default setting of false, Lita will emit a warning but the message will be dispatched to any registered handlers as usual. Default: false.

Note: You must set the robot's name to the value shown as "Room nickname" on the XMPP settings page.

There's no need to set config.robot.mention_name manually. The adapter will load the proper mention name from the XMPP roster upon connection.

Example

Lita.configure do |config|
  config.robot.name = "Lita Bot"
  config.robot.adapter = :hipchat
  config.adapters.hipchat.jid = "[email protected]"
  config.adapters.hipchat.password = "secret"
  config.adapters.hipchat.debug = true
  config.adapters.hipchat.rooms = :all
end

Events

  • :connected - When the robot has connected to HipChat. No payload.
  • :disconnected - When the robot has disconnected from HipChat. No payload.
  • :joined - When the robot joins a room. Payload: :room: The String room ID that was joined.
  • :parted - When the robot parts from a room. Payload: :room: The String room ID that was parted from.

Managing rooms

To make Lita join or part from rooms, use the built-in join and part commands. For backwards compatibility, the rooms configuration attribute will be supported until lita-hipchat 4.0, but you should remove it and begin using the new command instead. If the configuration attribute is set, lita-hipchat will honor its value and join those rooms instead of the ones persisted to Redis from using the new commands.

NOTE: You must be a member of the config.robot.admins to use the build in join and part commands**

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].