{"id":26678343,"url":"https://github.com/telexintegrations/slack-telex_alert_system","last_synced_at":"2025-03-26T05:15:31.043Z","repository":{"id":278816614,"uuid":"936871088","full_name":"telexintegrations/slack-telex_alert_system","owner":"telexintegrations","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-21T21:46:19.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-21T21:47:54.799Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/telexintegrations.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2025-02-21T20:49:13.000Z","updated_at":"2025-02-21T21:46:22.000Z","dependencies_parsed_at":"2025-02-21T21:57:58.933Z","dependency_job_id":null,"html_url":"https://github.com/telexintegrations/slack-telex_alert_system","commit_stats":null,"previous_names":["telexintegrations/slack-telex_alert_system"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telexintegrations%2Fslack-telex_alert_system","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telexintegrations%2Fslack-telex_alert_system/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telexintegrations%2Fslack-telex_alert_system/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telexintegrations%2Fslack-telex_alert_system/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/telexintegrations","download_url":"https://codeload.github.com/telexintegrations/slack-telex_alert_system/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245591532,"owners_count":20640692,"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":[],"created_at":"2025-03-26T05:15:30.444Z","updated_at":"2025-03-26T05:15:31.024Z","avatar_url":"https://github.com/telexintegrations.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📨 Slack Announcement Channel Integration (Slack Alert)\r\n\r\n🚀 **Automate and Forward Slack Announcements to Another Software**\r\n\r\nThis integration listens to messages posted in a designated Slack **#announcements** channel and forwards them to another system via a webhook or API.\r\n\r\n## Quick Test\r\nTo test this integration before moving on to the features, in the input field type in this command:\r\n```bash\r\n   /slack-announcements\r\n```\r\n\r\n## 📌 Features\r\n\r\n- ✅ Fetch messages from Slack’s **#announcements** channel\r\n- ✅ Forward messages to an external API or database\r\n- ✅ Handle retries for failed message deliveries\r\n- ✅ Secure authentication with Slack OAuth tokens\r\n\r\n## 🛠️ Installation\r\n\r\n1. **Clone the Repository**\r\n\r\n   ```bash\r\n   git clone https://github.com/your-repo/slack-announcement-integration.git\r\n   cd slack-announcement-integration\r\n\r\n   ```\r\n\r\n2. **Install Dependencies**\r\n\r\n   ```bash\r\n   npm install\r\n\r\n   ```\r\n\r\n3. **Set Up Environment Variables**\r\n   PORT=port-number\r\n   TARGET_URL=https://slack-messenger.onrender.com/integration/slack-messages\r\n   TELEX_CHANNEL_ID=\r\n   TELEX_CHANNEL_WEBHOOK=\r\n   SLACK_BOT_TOKEN=\r\n   SLACK_CHANNEL_ID=\r\n   SLACK_API_WEBHOOK=\r\n\r\n## 🚀 Usage\r\n\r\n1.  Start Application\r\n\r\n    ```bash\r\n    npm start\r\n\r\n    ```\r\n\r\n2.  Fetch Messages Manually\r\n\r\n    - Request Type:\r\n\r\n      ```\r\n      {\r\n        channel_id: string;\r\n        settings:{\r\n          label: string;\r\n          type: \"text\";\r\n          description: string;\r\n          default: string;\r\n          required: boolean;\r\n        };\r\n        message: string;\r\n      };\r\n      ```\r\n\r\n    - Response Type:\r\n      ```\r\n      {\r\n          message: string;\r\n          status: string;\r\n          event_name: string;\r\n          username: string;\r\n      }\r\n      ```\r\n\r\n## 🔗 End Points\r\n\r\n- GET https://slack-messenger.onrender.com/integration/slack-messages  \r\n   Fetches messages from the announcement channel on slack\r\n\r\n## ⚙️ Configuration\r\n\r\n- SLACK_BOT_TOKEN: Required to authenticate API requests from Slack\r\n- SLACK_CHANNEL_ID: Specifies which Slack channel to monitor\r\n- SLACK_API_WEBHOOK: The Slack api url\r\n- Designated Channel ID (TELEX_CHANNEL_ID): The external system where messages are forwarded\r\n- Channel Webhook (TELEX_CHANNEL_WEBHOOK): The external system where messages are forwarded\r\n\r\n## 🔒 Security Considerations\r\n\r\n- Store credentials securely in environment variables\r\n- Implement rate limiting to avoid API abuse\r\n\r\n## 🛠️ Built With\r\n\r\n- Node.js \u0026 Express - Backend API\r\n- Slack API - Fetching and processing messages\r\n- Axios - Handling API requests\r\n- Dotenv - Managing environment variables\r\n\r\n## 📜 License\r\n\r\nThis project is licensed under the MIT License – feel free to modify and use it.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftelexintegrations%2Fslack-telex_alert_system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftelexintegrations%2Fslack-telex_alert_system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftelexintegrations%2Fslack-telex_alert_system/lists"}