{"id":15714303,"url":"https://github.com/slack-samples/javascript-channel-prefixes","last_synced_at":"2025-10-09T17:01:15.551Z","repository":{"id":55368329,"uuid":"94124148","full_name":"slack-samples/javascript-channel-prefixes","owner":"slack-samples","description":"Encourage channel naming conventions","archived":true,"fork":false,"pushed_at":"2024-01-11T08:15:51.000Z","size":76,"stargazers_count":28,"open_issues_count":6,"forks_count":15,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-07-22T11:46:49.427Z","etag":null,"topics":["slack-blueprint","slack-workflow-sample"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/slack-samples.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","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,"zenodo":null}},"created_at":"2017-06-12T17:46:16.000Z","updated_at":"2025-05-27T23:12:17.000Z","dependencies_parsed_at":"2025-07-22T11:46:53.449Z","dependency_job_id":"8a956b56-871c-4bd5-9376-fc8aae3bff95","html_url":"https://github.com/slack-samples/javascript-channel-prefixes","commit_stats":null,"previous_names":["slackapi/template-channel-naming"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/slack-samples/javascript-channel-prefixes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slack-samples%2Fjavascript-channel-prefixes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slack-samples%2Fjavascript-channel-prefixes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slack-samples%2Fjavascript-channel-prefixes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slack-samples%2Fjavascript-channel-prefixes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slack-samples","download_url":"https://codeload.github.com/slack-samples/javascript-channel-prefixes/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slack-samples%2Fjavascript-channel-prefixes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271282032,"owners_count":24732296,"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","status":"online","status_checked_at":"2025-08-20T02:00:09.606Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["slack-blueprint","slack-workflow-sample"],"created_at":"2024-10-03T21:35:53.443Z","updated_at":"2025-10-09T17:01:15.214Z","avatar_url":"https://github.com/slack-samples.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Channel Naming Slack App Template\n\n\n\u003e :sparkles: *Updated October 2018: As we have introduced some new features, this tutorial and the code samples have been updated! All the changes from the previous version of this example, read the [DIFF.md](DIFF.md)*\n\n\n---\n\nAn example app that helps enforce channel naming conventions.\n\n![channel-naming](https://user-images.githubusercontent.com/700173/27057518-6b4a6d64-4f81-11e7-853c-702c803a95ee.gif)\n*(The GIF image is outdated, however, the functionality of this sample app reminds the same! 🙇‍♀️)*\n\n## Setup\n\n### 1. Clone this repo, or remix this on Glitch\n\n\u003e git clone https://github.com/slackapi/template-channel-naming.git\n\n[![Remix on Glitch](https://cdn.glitch.com/2703baf2-b643-4da7-ab91-7ee2a2d00b5b%2Fremix-button.svg)](https://glitch.com/edit/#!/remix/slack-channel-naming-blueprint)\n\n### 2. Create a Slack app\n\n1. Create an app at [https://api.slack.com/apps](https://api.slack.com/apps)\n1. At **Bot Users**, add a new bot user.\n1. Click on **OAuth \u0026 Permissions** and select the following scopes: `chat:write`, `channels:read`, `chat:write.public`\n1. Enable the interactive messages (See below *Enable Interactive Messages*)\n1. Enable events (See below *Enable the Events API*)\n1. Click 'Save Changes' and install the app to all channels (You should get an OAuth access token after the installation\n\n#### 3. Run locally or [![Remix on Glitch](https://cdn.glitch.com/2703baf2-b643-4da7-ab91-7ee2a2d00b5b%2Fremix-button.svg)](https://glitch.com/edit/#!/remix/slack-channel-naming-blueprint)\n1. Set the following environment variables in `.env` (copy from `.env.sample`):\n    * `SLACK_ACCESS_TOKEN`: Your app's `xoxa-` token (available on the Install App page)\n    * `SLACK_SIGNING_SECRET`: Your app's Verification Token (available on the Basic Information page)\n    * `PORT`: The port that you want to run the web server on (Default: 5000)\n1. If you're running the app locally:\n    * Start the app (`npm start`)\n\n### 4. Enable Interactive Messages\n1. Click on **Interactive Components** and enable the feature.\n1. Set the Request URL to your server URL + `/interactions`\n\nIf you did \"Remix\" on Glitch, it auto-generate a new URL with two random words, so your Request URL should be like: `https://fancy-feast.glitch.me/command`. \n\n#### Enable the Events API\n1. Click on **Events Subscriptions** and enable events.\n1. Set the Request URL to your server (*e.g.* `https://yourname.ngrok.com`) or Glitch URL + `/events`\n1. On the same page, scroll down to *Subscribe to Bot Events* and subscribe to the `channel_created` and `channel_rename` events.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslack-samples%2Fjavascript-channel-prefixes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslack-samples%2Fjavascript-channel-prefixes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslack-samples%2Fjavascript-channel-prefixes/lists"}