Skip to content

Conversation

@cwille97
Copy link

@cwille97 cwille97 commented Oct 1, 2020

Add slash command for /survey to get Pybot to print out the link to our web survey

Copy link
Member

@aaron-junot aaron-junot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll admit I haven't ran this to see if it works, but it looks like even if there's a bug where it doesn't work, it won't break anything. I'll go ahead and merge, which will deploy to staging. I'll want to get with @AllenAnthes to find out the process for testing and merging to production. Anyway, thanks for the contribution!

@aaron-junot aaron-junot merged commit b81e692 into OperationCode:staging Oct 2, 2020
@aaron-junot
Copy link
Member

@cwille97 It turns out that it didn't work. I'm going to revert this. Please debug your error and re-open this when you have it figured out. Hit us up in slack in the #oc-python-projects channel if you need help debugging. You can join our slack at https://operationcode.org/join

@cwille97
Copy link
Author

cwille97 commented Oct 2, 2020

Was there a specific error message or anything like that on your end? I didn't see anything on my local dev env so it will save me time reading the code if you have something. No worries if you don't :)

@aaron-junot
Copy link
Member

2020-10-02T16:01:00.708-05:00

Copy
2020-10-02 21:01:00,708 - slack.io.abc - DEBUG - Querying https://slack.com/api/chat.postMessage with {'Authorization': 'Bearer xoxb-615088591313-621388559477-gzvXpK33yoZj3wFLXzfpiW2P', 'Content-type': 'application/json; charset=utf-8'}, "Please fill out our survey at: https://operationcode.org/survey"
2020-10-02 21:01:00,708 - slack.io.abc - DEBUG - Querying https://slack.com/api/chat.postMessage with {'Authorization': 'Bearer xoxb-615088591313-621388559477-gzvXpK33yoZj3wFLXzfpiW2P', 'Content-type': 'application/json; charset=utf-8'}, "Please fill out our survey at: https://operationcode.org/survey"

2020-10-02T16:01:00.761-05:00

Copy
2020-10-02 21:01:00,761 - slack.io.abc - DEBUG - Response from https://slack.com/api/chat.postMessage: 200, b'
{
"ok": false,
"error": "json_not_object"
}
', <CIMultiDictProxy('date': 'Fri, 02 Oct 2020 21:01:00 GMT', 'server': 'Apache', 'x-slack-req-id': '3f526600a25df22ff4ce4fcc89a269bf', 'x-oauth-scopes': 'identify,bot:basic', 'access-control-expose-headers': 'x-slack-req-id, retry-after', 'access-control-allow-origin': '', 'x-slack-backend': 'r', 'x-content-type-options': 'nosniff', 'expires': 'Mon, 26 Jul 1997 05:00:00 GMT', 'cache-control': 'private, no-cache, no-store, must-revalidate', 'x-xss-protection': '0', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'referrer-policy': 'no-referrer', 'access-control-allow-headers': 'slack-route, x-slack-version-ts, x-b3-traceid, x-b3-spanid, x-b3-parentspanid, x-b3-sampled, x-b3-flags', 'vary': 'Accept-Encoding', 'pragma': 'no-cache', 'content-encoding': 'gzip', 'content-length': '58', 'content-type': 'application/json; charset=utf-8', 'x-via': 'haproxy-www-npun,haproxy-edge-iad-b6yd')>
2020-10-02 21:01:00,761 - slack.io.abc - DEBUG - Response from https://slack.com/api/chat.postMessage: 200, b'{"ok":false,"error":"json_not_object"}', <CIMultiDictProxy('date': 'Fri, 02 Oct 2020 21:01:00 GMT', 'server': 'Apache', 'x-slack-req-id': '3f526600a25df22ff4ce4fcc89a269bf', 'x-oauth-scopes': 'identify,bot:basic', 'access-control-expose-headers': 'x-slack-req-id, retry-after', 'access-control-allow-origin': '
', 'x-slack-backend': 'r', 'x-content-type-options': 'nosniff', 'expires': 'Mon, 26 Jul 1997 05:00:00 GMT', 'cache-control': 'private, no-cache, no-store, must-revalidate', 'x-xss-protection': '0', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'referrer-policy': 'no-referrer', 'access-control-allow-headers': 'slack-route, x-slack-version-ts, x-b3-traceid, x-b3-spanid, x-b3-parentspanid, x-b3-sampled, x-b3-flags', 'vary': 'Accept-Encoding', 'pragma': 'no-cache', 'content-encoding': 'gzip', 'content-length': '58', 'content-type': 'application/json; charset=utf-8', 'x-via': 'haproxy-www-npun,haproxy-edge-iad-b6yd')>

@cwille97
Copy link
Author

cwille97 commented Oct 4, 2020

Thanks! I'll see if I can figure out what's up with that.

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

Successfully merging this pull request may close these issues.

3 participants