Skip to content

designated channel#1209

Merged
zzstoatzz merged 3 commits intomainfrom
point-to-right-channel
Aug 20, 2025
Merged

designated channel#1209
zzstoatzz merged 3 commits intomainfrom
point-to-right-channel

Conversation

@zzstoatzz
Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings August 20, 2025 17:51
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements channel restrictions for a Slack bot, allowing it to only respond in designated channels per workspace. When users mention the bot in non-designated channels, they receive a redirect message pointing them to the correct channel.

Key changes:

  • Added workspace-to-channel mapping configuration
  • Implemented channel validation logic with redirect functionality
  • Added comprehensive documentation for the feature

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
examples/slackbot/src/slackbot/api.py Added channel validation functions and redirect logic in message handler
examples/slackbot/src/slackbot/_internal/constants.py Created workspace-to-channel ID mapping configuration
examples/slackbot/CHANNEL_RESTRICTIONS.md Added complete documentation for the channel restrictions feature

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread examples/slackbot/CHANNEL_RESTRICTIONS.md Outdated
Comment thread examples/slackbot/CHANNEL_RESTRICTIONS.md Outdated
Comment thread examples/slackbot/src/slackbot/api.py Outdated
@zzstoatzz zzstoatzz merged commit 79e7846 into main Aug 20, 2025
3 checks passed
@zzstoatzz zzstoatzz deleted the point-to-right-channel branch August 20, 2025 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants