Skip to content
This repository was archived by the owner on Aug 15, 2022. It is now read-only.

Conversation

@aerickson
Copy link
Contributor

Output entries starting with U will be converted to IM channels.

Please let me know if there's a better way to go about this.

Thanks,
Andy

@aerickson aerickson force-pushed the output_can_take_username branch from f21e04c to fda73db Compare July 14, 2015 05:13
rtmbot.py Outdated
message = output[1]
# things that start with U are users. convert to an IM channel.
if destination.startswith('U'):
result = json.loads(self.slack_client.api_call('im.open', user=destination))
Copy link
Contributor

Choose a reason for hiding this comment

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

mind doing a try/except to catch ValueError in case there's some incorrectly formatted JSON returned?

@Yasumoto
Copy link
Contributor

This is a great idea! If you're still interested in this, mind rebasing and adding some tweaks? Looking forward to getting this in!

@aerickson aerickson force-pushed the output_can_take_username branch from fda73db to 84e4a1c Compare May 11, 2017 03:53
@coveralls
Copy link

coveralls commented May 11, 2017

Coverage Status

Coverage decreased (-0.04%) to 29.224% when pulling 7ec89b8 on aerickson:output_can_take_username into f9f2fd5 on slackhq:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.04%) to 29.224% when pulling 7ec89b8 on aerickson:output_can_take_username into f9f2fd5 on slackhq:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.7%) to 29.954% when pulling d6e08c5 on aerickson:output_can_take_username into f9f2fd5 on slackhq:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage increased (+0.7%) to 29.954% when pulling d6e08c5 on aerickson:output_can_take_username into f9f2fd5 on slackhq:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.7%) to 29.954% when pulling ad1586b on aerickson:output_can_take_username into f9f2fd5 on slackhq:master.

2 similar comments
@coveralls
Copy link

Coverage Status

Coverage increased (+0.7%) to 29.954% when pulling ad1586b on aerickson:output_can_take_username into f9f2fd5 on slackhq:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.7%) to 29.954% when pulling ad1586b on aerickson:output_can_take_username into f9f2fd5 on slackhq:master.

@aerickson
Copy link
Contributor Author

@Yasumoto Sorry for the delay. I'm not exactly sure how the group messaging should work. Please let me know if you think of anything else.

@Roach Roach merged commit a45af00 into slack-samples:master Feb 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants