Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
lita-hipchat is an adapter for Lita that allows you to use the robot with HipChat.
Add lita-hipchat to your Lita instance's Gemfile:
gem "lita-hipchat"
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 "12345_123456@chat.hipchat.com".
jid
(String) - The JID of your robot's HipChat account. Default: nil
.password
(String) - The password for your robot's HipChat account. Default: nil
.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
.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.
Lita.configure do |config|
config.robot.name = "Lita Bot"
config.robot.adapter = :hipchat
config.adapters.hipchat.jid = "12345_123456@chat.hipchat.com"
config.adapters.hipchat.password = "secret"
config.adapters.hipchat.debug = true
config.adapters.hipchat.rooms = :all
end
: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.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.
FAQs
Unknown package
We found that lita-hipchat demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.