-
Notifications
You must be signed in to change notification settings - Fork 1
57 private message when user joins workspace #363
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
57 private message when user joins workspace #363
Conversation
- Introduce a plugin to send welcome messages to new members on Slack. - Add `/welcome` Slack command and `users:read` scope to manifest. - Include `welcome.json` for structured welcome message content with links and information.
…when-user-joins-workspace
…vent handling - Introduce `/welcome` Slack command to send welcome messages on-demand. - Extract `send_welcome_message` as a reusable async function. - Add `pprint` for debugging team join events. - Update `team_join` event to acknowledge and use the refactored message function.
- Enhance `/welcome` description in the manifest. - Add `team_join` event to event subscriptions. - Redesign welcome message with a table for better readability. - Introduce logging for new user join events. - Refactor `get_welcome_message_blocks` with a cache size limit. - Fix `/welcome` command to restrict non-DM usage and improve feedback.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Implements a welcome message system for new Slack workspace members with a private message from SMIB containing useful workspace information and links. The feature can also be manually triggered by users via the /welcome command.
- Creates a comprehensive welcome message template with workspace links, opening hours, and useful channels
- Adds automatic welcome messaging for new team members joining the workspace
- Implements a manual
/welcomecommand for users to retrieve the welcome information
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/plugins/space/welcome/welcome.json | Defines the Slack block kit template for the welcome message with workspace information |
| src/plugins/space/welcome/init.py | Implements the welcome plugin with team_join event handler and /welcome command |
| slack-manifest.yaml | Adds required permissions and command registration for the welcome functionality |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
|
@sam57719 Could do with a docs update to note the new feature and also example content and how to edit the correct JSON so someone can come in and do that without understanding the whole plugin system as I see it as an IT admin function likely to be updated outside of smib development. Also be good to post the formatted content into trustees and get approval for the feature to be enabled or any content to be adjusted. |
|
@sam57719 Tested with dummy account and all looks fine, will approve on documentation update and we can plan deployment to prod SMIB with trustees. |
- Update README with a link to detailed instructions. - Introduce a new README file explaining how to modify the welcome message using Slack Block Kit Builder.
sjefferson99
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All looks good and works as expected.
When a user joins the Slack workspace, a private message from SMIB is sent detailing useful information.
This can also be triggered by a user by using the
/welcomecomamnd in slack.closes #57