Using HipChat through an IRC client with BitlBee
This post was originally posted on the Phase2 Blog.
Here at Treehouse Agency, we love IRC, as does the rest of the Drupal community. Still, IRC ports are often blocked, and not everyone is comfortable using IRC. We've recently been using HipChat to set up chat rooms for certain new clients.
I already route most of my AIM and GTalk interaction through an IRC gateway using BitlBee, and I wanted to hook HipChat up to an IRC client as well. Here's a guide on how to do this.
(Note that I was having trouble joining channels in my LimeChat last night as I was writing this up, but I might just be missing something. Try it out!)
All the uppercase items come from the XMPP Account Settings page in your HipChat account.
- Add the account in Bitlbee.
account add jabber USERNAME@chat.hipchat.com 'PASSWORD'
- Before you connect, set it up so that folks' chat names will display properly.
account hipchat set nick_source full_name
- To prevent being spammed with room history every time you join or change status, set your resource to 'bot'.
account hipchat set resource bot
- Connect to the account.
account hipchat on
- At this point, you can join the &hipchat channel to see all your contacts and use /msg to start talking w/ one of them privately.
/join &hipchat
- Now, add a chat. Note that the information on the XMPP settings pages doesn't give you @chat.hipchat.com. You can set whatever channel name you want.
chat add hipchat JABBERNAME@chat.hipchat.com #CHANNELNAME
- Before you can join, you must set your nick to match the Room nickname setting in your XMPP settings. You must do this for every room. Use the channel name you decided on earlier for easier access.
channel #CHANNELNAME set nick 'ROOM NICKNAME'
- Now, join the channel.
/join #CHANNELNAME
- Start chatting!
Hey everybody!
I'm using IRC!
(fry)
/me likes IRC and HipChat
- When you're ready to sign out of HipChat, use
account off
.
account hipchat off
- Previous: Vagrant and NFS
- Next: Bonjour, mes amis!