Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tchiotludo/slack2hangoutschat-webhook
Slack 2 Google HangoutChat webhook converter
https://github.com/tchiotludo/slack2hangoutschat-webhook
google-chat hangouts-chat slack slack-webhook webhook
Last synced: 3 months ago
JSON representation
Slack 2 Google HangoutChat webhook converter
- Host: GitHub
- URL: https://github.com/tchiotludo/slack2hangoutschat-webhook
- Owner: tchiotludo
- License: mit
- Created: 2018-11-04T14:05:00.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T21:37:32.000Z (about 2 years ago)
- Last Synced: 2024-10-19T06:09:53.180Z (4 months ago)
- Topics: google-chat, hangouts-chat, slack, slack-webhook, webhook
- Language: TypeScript
- Homepage: slack2hangoutschat-webhook-tchiotludo.vercel.app
- Size: 1.66 MB
- Stars: 9
- Watchers: 5
- Forks: 0
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# slack2hangoutschat-webhook
> Slack 2 Google HangoutChat webhook converter[](https://github.com/tchiotludo/slack2hangoutschat-webhook/blob/master/LICENSE)
[](https://www.npmjs.com/package/slack2hangoutschat-webhook)
[](https://david-dm.org/tchiotludo/slack2hangoutschat-webhook)
[](https://david-dm.org/tchiotludo/slack2hangoutschat-webhook#info=devDependencies)This project convert and forward all incoming Slack webhook to Hangouts chat.
In an opinionated way, it expose a webserver to that will proxy Slack webhook to Google chat Api.## Online demo
https://slack2hangouts-chat.now.sh/## Installation
### Docker
```sh
docker run -d \
-p 3000:3000 \
tchiotludo/slack2hangoutschat-webhook
```Go to http://localhost:3000 for instruction
### Local
```bash
git clone https://github.com/tchiotludo/slack2hangoutschat-webhook
cd slack2hangoutschat-webhook
npm install
npm run watch # for dev with watch
npm run build && NODE_ENV="production" npm run start # build and start
```Go to http://localhost:3000 for instruction
### Azure App
* Create a Http Trigger
* `npm install slack2hangoutschat-webhook`
* update to index.js with this content
```js
const webhook = require('slack2hangoutschat-webhook/dist/webhook');
module.exports = webhook.Webhook.azure
```
* Deploy to azure## Api Usage
```bash
npm install slack2hangoutschat-webhook
``````js
import { Converter } from "slack2hangoutschat-webhook";console.log(Converter.convert({{
"attachments": [
{
"fallback": "Required plain-text summary of the attachment.",
"color": "#36a64f",
"pretext": "Optional text that appears above the attachment block",
"author_name": "Bobby Tables",
"author_link": "https://gsuite.google.com/products/chat/",
"author_icon": "https://www.gstatic.com/images/branding/product/2x/chat_64dp.png",
"title": "Slack API Documentation",
"title_link": "https://api.slack.com/",
"text": "Optional text that appears within the attachment",
"fields": [
{
"title": "Priority",
"value": "High",
"short": false
}
],
"image_url": "https://assets.brandfolder.com/oox8px-b08c7c-5m1qjd/original/full-color-mark%202x.png",
"thumb_url": "https://assets.brandfolder.com/oox90q-9q2cew-bw1vdr/view.png",
"footer": "Slack API",
"footer_icon": "https://platform.slack-edge.com/img/default_application_icon.png",
"ts": 123456789
}
]
})
```## License
MIT © [tchiotludo](https://github.com/tchiotludo)