-
Notifications
You must be signed in to change notification settings - Fork 229
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
hubot script how to get Room name? #213
Comments
you'll need to access the |
This method can only obtain the roomId, but unable to get to the room name |
@thinkeridea i've the same problem, i'm unable to retrieve room name from a roomID.
@geekgonecrazy as you can see you can obtain the RoomId by name or id, but if we want to get the room name from an id, there is not method for this in driver. |
@JigSawFr I know simple increase Rocket. Chat service API can quickly realize demand, but I'm meteor is not very familiar with, the modified build always fail (perhaps China's firewall), also in trying to have some progress |
@thinkeridea yes, rocket api has a method to get info from a room by ID : https://rocket.chat/docs/developer-guides/rest-api/channels/info |
@JigSawFr I added the server methods getRoomNameById , maintain and present model is consistent, now also in testing availability, specific submission: thinkeridea/Rocket.Chat@231cdaa |
@JigSawFr @geekgonecrazy My practice is successful, very convenient, hubot rocketchat adapter changes: thinkeridea@f84f504 |
@thinkeridea, finally we have created a service (which use rocket chat api) for our scripts to have more needed functions as for example: getRoomNameById, sendPrivateMessage, etc.. detect room type etc.. |
@thinkeridea you rock! Looks like when 0.57.0 lands you will be able to simply call that method! :) |
@JigSawFr @geekgonecrazy I implemented a simple hubot deployment script automatically, if interested can help add some functions, I will add more documents and assist in the next. |
I try to use hubot control permissions, I think most hubot all function can be applied to join in the Room, but some will only respond to the designated person or Room, at this time I can get to the Room ID, but can't get Room Name, how should do?
The text was updated successfully, but these errors were encountered: