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

Add org key for slack team name #304

Open
patcon opened this issue Feb 1, 2016 · 3 comments
Open

Add org key for slack team name #304

patcon opened this issue Feb 1, 2016 · 3 comments

Comments

@patcon
Copy link

patcon commented Feb 1, 2016

Seems that most every brigade has a slack team. Would be great to keep track of this in the API

In particular, I'm interested in creating a service that works a little like this:
https://github.com/davidkassa/hubot-slack-relay

The idea is to make slack a little bit more like IRC, where you can easily jump into someone else's channel and start talking and sharing information. Would be great if a central service kept track of all the authorization tokens, and a bot script allowed users to send receive messages between teams :)

@patcon patcon changed the title Add key for slack team name Add org key for slack team name Feb 1, 2016
@patcon
Copy link
Author

patcon commented Feb 1, 2016

Hm. Or perhaps it should just be slack_url, and then people could either link the login (https://civictechto.slack.com/) or link to an invite page if they've chosen to host one (http://civictech.ca/slack/).

@ondrae
Copy link
Collaborator

ondrae commented Feb 1, 2016

Great idea. Here's how it could work:

  • In https://github.com/codeforamerica/brigade-information add an optional slack_url attribute to the organizations.json docs.
  • Add the slack_url attribute to the Organization model
  • Write a migration for this change. I think its python app.py db migrate
  • run_update.py should automatically pick it up the new info, but double check here
  • Add some tests that the attribute is getting picked up and added.

You could do the same thing with Twitter handles too.

@patcon
Copy link
Author

patcon commented Feb 1, 2016

Great! I've got it started, but I'll have to investigate testing tools in python later

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