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

Answer a question in Slack #22

Open
davidcameron opened this issue May 5, 2015 · 0 comments
Open

Answer a question in Slack #22

davidcameron opened this issue May 5, 2015 · 0 comments

Comments

@davidcameron
Copy link
Owner

Depends on #21

A user should be able to answer a quesion through Slack. It would look like:

"Hobz answer 123 The parameter for messge text in Slack webhooks is "text"' where "123" is the question ID.

Messages to Slack

In order to answer a question, we'll need to know the question ID, so we'll have to post a message right after a user asks a question. E.g.
"David asked 'What's the Slack webhook parameter for message text?' - #123"
"first-name' asked 'question-text' - question-id`"

Sending Answer from Slack

An answer would be typed into Slack like:
"Hobz answer 123 It's just 'text'"
"trigger-word answer message-id answer-text"

Future

Eventually we'll want to get really cute, like just having "Hobz answer ..." and having it answer the last question from that channel (presumably that means we'll have to store the channel ID the question was asked in), or "Hobz answer user-name ..." to answer the last question from that user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant