Skip to content

jforman/hangbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hangbot

Hangbot is a bot in the style of many other IRC/Slack bots, but for use on Google's new Hangouts Chat product.

Features

  • Receive messages via Pub/Sub topic subscription.
  • Asynchronous responses via HTTP API.

Requirements

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.

Screenshot of typical interaction

Screenshot

Execution

$ ./hangbot.go -credentialsFile account.json \
-project fooProject \
-topic hangouts-chat.homebot \
-subscription HomeSub

Reference Material

Future Development Ideas

  • 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.

About

Google Hangouts Chat Bot using PubSub

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages