Hangbot is a bot in the style of many other IRC/Slack bots, but for use on Google's new Hangouts Chat product.
- Receive messages via Pub/Sub topic subscription.
- Asynchronous responses via HTTP API.
From the Hangouts Chat documentation.
- ServiceAccount for the bot. To be used for receiving messages via Pub/Sub.
- Pub/Sub topic created to be used for your Bot to receive messages.
$ ./hangbot.go -credentialsFile account.json \
-project fooProject \
-topic hangouts-chat.homebot \
-subscription HomeSub
- https://godoc.org/google.golang.org/api/chat/v1
- https://github.com/google/google-api-go-client/tree/master/chat/v1
- Basically everything under https://developers.google.com/hangouts/chat/concepts
- Pub/Sub client library quick start: https://developers.google.com/hangouts/chat/how-tos/bots-publish?authuser=0
- https://github.com/google/google-api-go-client/blob/master/GettingStarted.md
- Use the cards concept to make more rich interactions with the Bot.
- Interactions with Nestmon, some Go code I wrote to stream Nest thermostat updates from my house. First just a way to see the current cooling/heating status of my home. Eventually maybe some sort of write capabilities to modify temperatures inside my home.