INNER CODE UNIT · Python
handler_sandbox_slash_command
meetbryce/open-source-slack-ai · ossai/handlers.py:342
async def handler_sandbox_slash_command(slack_context: SlackContext, ack, payload, say, user_id: str):
await ack()
client = slack_context.client
channel_id = payload["channel_id"]
channel_name = payload["channel_name"]
return client.chat_postEphemeral(
channel=channel_id,
user=user_id,
text=f"This is a test of the /sandbox command running in #{channel_name}.",
)