Created
October 2, 2018 15:25
-
-
Save chloegrace94/4e67bfc4dc164dda54bf2de018b67646 to your computer and use it in GitHub Desktop.
Stop instance - Slack message with status update attachment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
elif action_type == "button" and action_value == "stop": | |
message_response = ":bomb: Stopping *" + str(instance_name) + "*..." | |
message_update = { | |
"channel":channel_id, | |
"ts":message_ts, | |
"text":original_message, | |
#"attachment_type": "default", | |
"attachments": [ | |
{ | |
"name": "action_decision", | |
"text": message_response, | |
"fallback": ":x: Sorry, I'm unable to do that for you at the moment" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment