Delayed "Call To Action" message created for new users #311
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Three new functions created: team_join_delayed, build_delayed_message, and send_social_cta.
60 seconds after a user signs up for a new account, they will receive a private message from the slackbot with a welcome message and a request to the user to follow OC on social media.
team_join_delayed calls build_delayed_message to create social_media_messages, which is passed to send_social_cta.
Motivation and Context
The purpose of this PR is to allow new users the opportunity to get acquainted with the OC slack channel, then give the user the information they need to learn more about OC in other social media forums.
How has this been tested?
This feature was tested by creating several new user accounts in the OC dev slack channel, and successfully received the delayed message 60 seconds after new user account creation
Type of Change
This is a new feature that adds additional functionality