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

[NEW] Support for dynamic slack and rocket.chat channels #10205

Merged
merged 20 commits into from
Jun 19, 2018

Conversation

Hudell
Copy link
Contributor

@Hudell Hudell commented Mar 23, 2018

@RocketChat/core

Closes an item on #8012 , merging PR #6282
Also closes #6509
Original description:

The goal of this pull request was to support Slack and Rocket channels coming and going. You had to enable/disable the slack bridge for it to pick up on changes.
Refactored the code into multiple files to allow for easier contributions in the future.
Fixed a 'not defined' error that was polluting the server logs
Improved logging/debugging messages some more

@rodrigok rodrigok modified the milestones: 0.64.0, 0.66.0 May 22, 2018
@rodrigok
Copy link
Member

@Hudell can you fix the conflict?

});

Npm.depends({
'slack-client': '2.0.6'
Copy link
Member

Choose a reason for hiding this comment

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

Why are we adding this here?

@Hudell Hudell requested a review from graywolf336 June 13, 2018 18:59
}
//Choose whether SlackBridge should also send your messages back to Slack
RocketChat.settings.get('SlackBridge_Out_Enabled', (key, value) => {
logger.class.debug(`Setting: ${ key }`, value);
Copy link
Member

Choose a reason for hiding this comment

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

Should this do something?

this.copySlackChannelInfo(rid, this.slackChannelMap[rid]);
//Send messages from all channels that exist in Slack and the bot has joined
RocketChat.settings.get('SlackBridge_Out_All', (key, value) => {
logger.class.debug(`Setting: ${ key }`, value);
Copy link
Member

Choose a reason for hiding this comment

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

Should this do something?

}
//Choose which channels will send messages back to Slack
RocketChat.settings.get('SlackBridge_Out_Channels', (key, value) => {
logger.class.debug(`Setting: ${ key }`, value);
Copy link
Member

Choose a reason for hiding this comment

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

Should this do something?

@rodrigok rodrigok merged commit d292a37 into RocketChat:develop Jun 19, 2018
@Hudell Hudell deleted the dynamic-groups branch June 19, 2018 21:34
@rodrigok rodrigok mentioned this pull request Jun 28, 2018
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.

Slackbridge one way if channel was created in Rocket first
4 participants