Skip to content

Instantly share code, notes, and snippets.

@KyMidd

KyMidd/slack.py Secret

Created November 8, 2025 22:12
Show Gist options
  • Select an option

  • Save KyMidd/ef7fa0bd4b2aa889df7281cc591dc12e to your computer and use it in GitHub Desktop.

Select an option

Save KyMidd/ef7fa0bd4b2aa889df7281cc591dc12e to your computer and use it in GitHub Desktop.
user_id = user_info_json.get("user", {}).get("name", "unknown_user_id")
session_id = context.log_stream_name
full_conversation = "\n".join([
content.get("text", "")
for item in conversation
for content in item.get("content", [])
if isinstance(content, dict) and "text" in content
])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment