Skip to content
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

No existing way to get the Team name by the bot? #117

Closed
bholagabbar opened this issue Aug 30, 2016 · 9 comments
Closed

No existing way to get the Team name by the bot? #117

bholagabbar opened this issue Aug 30, 2016 · 9 comments

Comments

@bholagabbar
Copy link

I did not find any way to get the team associated with the bot. Like teamname.slack.com. Is there any way to do this currently?

@bcorne
Copy link
Contributor

bcorne commented Aug 30, 2016

For now it's not available, but it shouldn't be that hard to implement, the information is available in the JSON data provided during connection. I'll set it as an improvement and will handle that

@bholagabbar
Copy link
Author

Uhh I'd love to issue a PR fixing the issue. Where should I make the
changes? If you could acquaint me with what's expected

On 30-Aug-2016 8:24 PM, "Benoit Corne" notifications@github.com wrote:

For now it's not available, but it shouldn't be that hard to implement,
the information is available in the JSON data provided during connection.
I'll set it as an improvement and will handle that


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#117 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALJuG80EIXD09k_XYoRxIHe-3Rp3R8yzks5qlEQ6gaJpZM4JwjNZ
.

@bcorne
Copy link
Contributor

bcorne commented Aug 30, 2016

Oh, my bad, I've browsed the code and I think it is already available: you can get it by retrieving the team properties in your SlackSession instance with getTeam() and the team has the getDomain() method which should give you the teamname value. Let me know if this is the data you're looking for.

Best regards,

Benoit

@bholagabbar
Copy link
Author

bholagabbar commented Aug 30, 2016

@bcorne I don't see any getTeam() method from my session instance.

screenshot from 2016-08-30 21-17-16

I analysed the code too and I see this. However I think it is not made accessible by the API. I wonder why?

@bcorne
Copy link
Contributor

bcorne commented Aug 30, 2016

This was added by the end of June so no release was made available since. You can wait for the next release (I don't have any ETA) or use the last snapshot using jitpack

@bholagabbar
Copy link
Author

@bcorne Maybe you could close this issue after the next release then :)

@bcorne
Copy link
Contributor

bcorne commented Aug 31, 2016

sure

@bholagabbar
Copy link
Author

@bcorne BTW the tool I built using your library is live! Check it out. I've given you credits too :) https://github.com/bholagabbar/irackbot . a star would be great :D

@bcorne
Copy link
Contributor

bcorne commented Aug 31, 2016

That looks nice 👍 , I've starred it of course.

@bcorne bcorne closed this as completed Oct 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants