{"id":26690585,"url":"https://github.com/misscoded/workshop-bolt-python-pycon-2021","last_synced_at":"2025-08-10T19:21:37.106Z","repository":{"id":75865632,"uuid":"361886752","full_name":"misscoded/workshop-bolt-python-pycon-2021","owner":"misscoded","description":"Sample app using Bolt for Python for \"Building on the Slack Platform with Python\" PyCon workshop (May 2021)","archived":false,"fork":false,"pushed_at":"2021-04-28T05:37:23.000Z","size":6,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T15:43:55.942Z","etag":null,"topics":["bolt","python","slack"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/misscoded.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-26T20:34:49.000Z","updated_at":"2025-01-31T23:38:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"bc2fe225-3ced-4680-9c5f-dd30c121d325","html_url":"https://github.com/misscoded/workshop-bolt-python-pycon-2021","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/misscoded%2Fworkshop-bolt-python-pycon-2021","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/misscoded%2Fworkshop-bolt-python-pycon-2021/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/misscoded%2Fworkshop-bolt-python-pycon-2021/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/misscoded%2Fworkshop-bolt-python-pycon-2021/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/misscoded","download_url":"https://codeload.github.com/misscoded/workshop-bolt-python-pycon-2021/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248636057,"owners_count":21137362,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bolt","python","slack"],"created_at":"2025-03-26T15:33:49.643Z","updated_at":"2025-04-12T21:33:48.212Z","avatar_url":"https://github.com/misscoded.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bolt for Python Demo App (PyCon 2021)\nThis is a basic example app showing off just some of the functionality available in [Bolt for Python](https://slack.dev/bolt-python/tutorial/getting-started), including Socket Mode. \n\nMake sure you have a development workspace where you have permissions to install apps. If you don’t have a development workspace setup, go ahead and [create one](https://slack.com/create). \n\nWe also recommend that you [create a new app](https://api.slack.com/apps?new_app=1) if you haven’t done so already.\n\n## Install Dependencies\n```\npip install -r requirements.txt\n```\n\n## Add Scopes \u0026 Install App into Workspace\nIn your [**App Config**](https://api.slack.com/apps), after selecting your app, navigate to **Socket Mode**. Enable Socket Mode to generate and name a dedicated `SLACK_APP_TOKEN` for your app (this token can be located later at **Basic Information** \u003e **App-Level Tokens**).\n\nNext, navigate to **OAuth \u0026 Permissions**. In the **Bot Token Scopes** section, add the `channels:history`, `app_mentions:read`, `commands` and `chat:write` permissions.\n\nClick **Install App** to install the app to your workspace and generate a bot token. This token will be used in your app as the `SLACK_BOT_TOKEN` environment variable.\n\n## Setup Environment Variables\nThis app requires that you setup environment variables. \n\nYou can locate these values by navigating to your [**App Config**](https://api.slack.com/apps) and visiting the **Basic Information** and **OAuth \u0026 Permissions** pages.\n\nThe `SLACK_APP_TOKEN` can be found under **Basic Information** \u003e **App-Level Tokens** section.\n\nThe `SLACK_BOT_TOKEN` can be found under **OAuth \u0026 Permissions** \u003e **OAuth Tokens for Your Workspace**.\n\n```\nexport SLACK_APP_TOKEN=YOUR_SLACK_APP_TOKEN\nexport SLACK_BOT_TOKEN=YOUR_SLACK_BOT_TOKEN\n```\n\nIf using OAuth, you'll use the following:\n\n```\nexport SLACK_SIGNING_SECRET=YOUR_SLACK_SIGNING_SECRET\nexport SLACK_CLIENT_ID=YOUR_SLACK_CLIENT_ID\nexport SLACK_CLIENT_SECRET=YOUR_SLACK_CLIENT_SECRET\nexport SLACK_SCOPES=YOUR_SLACK_SCOPES\n```\n\nThe above OAuth-related values can be found under **Basic Information** \u003e **App Credentials**.\n\n## Run the App\nStart the app with the following command:\n\n```\npython app.py\n```\n\n## Subscribe to Events\nOn the **Events Subscriptions** page, after opting in, click **Subscribe to bot events** and add `app_home_opened`, `app_mentioned`, and `message.channels` to the events your app is subscribed to.  \n\n## Create a Shortcut\nOn the **Interactivity \u0026 Shortcuts** page, create a new Global Shortcut with a **Callback ID** of `launch_simple_modal`. \n\n## Enable Home Tab\nIn the **App Home** page, navigate to the **Show Tabs** section and enable the **Home Tab**. \n\n## Define Redirect URL for OAuth (optional)\nBolt's Socket Mode receiver supports OAuth, but it is HTTP-based. This means that on the **OAuth \u0026 Permissions** page, you must provide an additional, publicly accessible **Redirect URL**.\n\nFor development purposes, we recommend using [`ngrok`](https://ngrok.com/download). Checkout [this guide](https://api.slack.com/tutorials/tunneling-with-ngrok) for setting it up.\n\nThe **Redirect URL** should be set to your `ngrok` forwarding address with the `slack/oauth_redirect` path appended and should look something like this:\n\n```\nhttps://3cb89939.ngrok.io/slack/oauth_redirect\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmisscoded%2Fworkshop-bolt-python-pycon-2021","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmisscoded%2Fworkshop-bolt-python-pycon-2021","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmisscoded%2Fworkshop-bolt-python-pycon-2021/lists"}