Skip to content

Instantly share code, notes, and snippets.

@chloegrace94
Created October 2, 2018 15:25
Show Gist options
  • Save chloegrace94/4e67bfc4dc164dda54bf2de018b67646 to your computer and use it in GitHub Desktop.
Save chloegrace94/4e67bfc4dc164dda54bf2de018b67646 to your computer and use it in GitHub Desktop.
Stop instance - Slack message with status update attachment
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