Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/malykhin/hangouts-chat
https://github.com/malykhin/hangouts-chat
chat chatbot hangouts nodejs
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/malykhin/hangouts-chat
- Owner: malykhin
- Created: 2018-03-11T00:34:10.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-03-11T00:35:09.000Z (over 6 years ago)
- Last Synced: 2023-12-09T13:21:35.553Z (11 months ago)
- Topics: chat, chatbot, hangouts, nodejs
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hangouts-chat
Simple client for Google Hangouts Chat
## Features
- Send messages to an incoming webhook registered to a Hangouts Chat room
## Installing
```bash
$ npm install hangouts-chat
```## Using
```js
const IncomingWebHook = require('hangouts-chat').IncomingWebHookconst incomingWebHook = new IncomingWebHook('YOUR_WEB_HOOK_URL')
const messageObject = {text: 'hello'}
incomingWebHook.send(messageObject)
incomingWebHook.sendText('hello')
```## Docs
For messageObject reference object check Google documentation:
- Simple Text Messages: https://developers.google.com/hangouts/chat/reference/message-formats/basic
- Card Formatting Messages: https://developers.google.com/hangouts/chat/reference/message-formats/cards
- Creating an incoming webhook: https://developers.google.com/hangouts/chat/how-tos/webhooks