def build_messages( user_id) -> Tuple[Message, Message, Message, Message, Message]: initial_message = base_user_message(user_id) initial_message["text"] = team_join_initial_message(user_id) second_message = base_user_message(user_id) second_message["text"] = second_team_join_message() second_message["attachments"] = external_button_attachments() action_menu = base_user_message(user_id) action_menu["text"] = "We recommend the following resources." action_menu["attachments"] = base_resources() community_message = Message() community_message["text"] = f":tada: <@{user_id}> has joined! :tada:" community_message["attachments"] = not_greeted_attachment() community_message["channel"] = COMMUNITY_CHANNEL outreach_team_message = Message() outreach_team_message["text"] = ( f":spiral_note_pad: Outreach Team: Please reach out to <@{user_id}> via DM" f":spiral_note_pad: ") outreach_team_message["attachments"] = not_direct_messaged_attachment() outreach_team_message["channel"] = COMMUNITY_CHANNEL return ( initial_message, second_message, action_menu, community_message, outreach_team_message, )
def build_messages(user_id): initial_message = base_user_message(user_id) initial_message["text"] = team_join_initial_message(user_id) second_message = base_user_message(user_id) second_message["text"] = second_team_join_message() second_message["attachments"] = external_button_attachments() action_menu = base_user_message(user_id) action_menu["text"] = "We recommend the following resources." action_menu["attachments"] = base_resources() community_message = Message() community_message["text"] = f":tada: <@{user_id}> has joined! :tada:" community_message["attachments"] = not_greeted_attachment() community_message["channel"] = COMMUNITY_CHANNEL return initial_message, second_message, action_menu, community_message