Skip to content
This repository has been archived by the owner on Nov 10, 2017. It is now read-only.

Updated Slack name and room determination logic #119

Merged
merged 1 commit into from Jan 8, 2017
Merged

Updated Slack name and room determination logic #119

merged 1 commit into from Jan 8, 2017

Conversation

jamtur01
Copy link
Contributor

@jamtur01 jamtur01 commented Jan 8, 2017

Since Hubot-Slack 4.0.0 Slack returns the user ID and room ID rather than their names.

This commit:

  1. Checks if the adapter is Slack and, if so, sets user.name.

  2. Uses the channel ID to pull the channel name from the Slack client cache.

c.f. https://slackapi.github.io/hubot-slack/upgrading#upgrading-from-version-3-or-earlier

Since Hubot-Slack 4.0.0 Slack returns the user ID and room ID rather than their names.

This commit:

Checks if the adapter is Slack and if so sets user.name.

Uses the channel ID to pull the channel name from the Slack client cache.

c.f. https://slackapi.github.io/hubot-slack/upgrading#upgrading-from-version-3-or-earlier
@atmos atmos merged commit c0b0dc8 into atmos:master Jan 8, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants