https://github.com/telexintegrations/slack-telex_alert_system
https://github.com/telexintegrations/slack-telex_alert_system
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/telexintegrations/slack-telex_alert_system
- Owner: telexintegrations
- License: mit
- Created: 2025-02-21T20:49:13.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-21T21:46:19.000Z (over 1 year ago)
- Last Synced: 2025-02-21T21:47:54.799Z (over 1 year ago)
- Language: TypeScript
- Size: 0 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# π¨ Slack Announcement Channel Integration (Slack Alert)
π **Automate and Forward Slack Announcements to Another Software**
This integration listens to messages posted in a designated Slack **#announcements** channel and forwards them to another system via a webhook or API.
## Quick Test
To test this integration before moving on to the features, in the input field type in this command:
```bash
/slack-announcements
```
## π Features
- β
Fetch messages from Slackβs **#announcements** channel
- β
Forward messages to an external API or database
- β
Handle retries for failed message deliveries
- β
Secure authentication with Slack OAuth tokens
## π οΈ Installation
1. **Clone the Repository**
```bash
git clone https://github.com/your-repo/slack-announcement-integration.git
cd slack-announcement-integration
```
2. **Install Dependencies**
```bash
npm install
```
3. **Set Up Environment Variables**
PORT=port-number
TARGET_URL=https://slack-messenger.onrender.com/integration/slack-messages
TELEX_CHANNEL_ID=
TELEX_CHANNEL_WEBHOOK=
SLACK_BOT_TOKEN=
SLACK_CHANNEL_ID=
SLACK_API_WEBHOOK=
## π Usage
1. Start Application
```bash
npm start
```
2. Fetch Messages Manually
- Request Type:
```
{
channel_id: string;
settings:{
label: string;
type: "text";
description: string;
default: string;
required: boolean;
};
message: string;
};
```
- Response Type:
```
{
message: string;
status: string;
event_name: string;
username: string;
}
```
## π End Points
- GET https://slack-messenger.onrender.com/integration/slack-messages
Fetches messages from the announcement channel on slack
## βοΈ Configuration
- SLACK_BOT_TOKEN: Required to authenticate API requests from Slack
- SLACK_CHANNEL_ID: Specifies which Slack channel to monitor
- SLACK_API_WEBHOOK: The Slack api url
- Designated Channel ID (TELEX_CHANNEL_ID): The external system where messages are forwarded
- Channel Webhook (TELEX_CHANNEL_WEBHOOK): The external system where messages are forwarded
## π Security Considerations
- Store credentials securely in environment variables
- Implement rate limiting to avoid API abuse
## π οΈ Built With
- Node.js & Express - Backend API
- Slack API - Fetching and processing messages
- Axios - Handling API requests
- Dotenv - Managing environment variables
## π License
This project is licensed under the MIT License β feel free to modify and use it.