-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
messageRoom still does not work #268
Comments
I successfully implemented a "messageRoom" feature for my teams Hubot. You can send it a room name like "Hipchat Room" and I transform into a format that is used for the channelID: (name) ->
temp = name.toLowerCase().replace(/\s/g, "_")
"#{HIPCHAT_ROOM_ID}_#{temp}@conf.hipchat.com" Where I also believe that Hubot has to either be in the room or have access to join the room if he's not in it in order for message that room to work. If he's not in the room and can't automatically join them, then you may want to invite him to the rooms you want to message prior to testing |
This worked for me. What you're calling HIPCHAT_ROOM_ID is a global Jabber ID for your Hipchat account, not a unique ID for each room. You can find it in your Hipchat settings on their site, or maybe in an environment variable. |
Would it be reasonable to build this into hubot-hipchat itself so users can simply specify a room name? |
I don't know if it's necessarily a "good idea" so to speak, but I think it would be great to have an adapter-agnostic means to get a room ID. Something like |
@bbuck I think that's a good idea! I would definitely use that. |
I ran into this snag and just did this:
|
Please try my PR (#280)! Please fix your hubot package.json: {
...
"dependencies": {
...
"hubot-hipchat": "178inaba/hubot-hipchat#rooms",
...
},
...
} |
Hi,
When I try to send a message to a room, nothing shows up. I noticed an issue (#24) was opened long time ago and was closed. I've tried the various workaround in it and nothing works. Not sure whether this is related to the adapter or hipchat or my setup.
Thanks,
Cao
Code
Hubot log
OS: Mac OS X 10.11 El Capitan
node 4.2.1
Extracted from package.json:
The text was updated successfully, but these errors were encountered: