Fluffy Fluffy - 1 year ago 258
Node.js Question

Is it possible to send a Google hangouts chat message using node.js?

I'm looking for a way to send a message to the new Gmail chat window - Google Hangout apparently. I'm aware XMPP is supported for old-style chats, but is there an API to send anything using Google Hangouts from node.js?

Answer Source



npm install hangouts-bot


var hangoutsBot = require("hangouts-bot");
var bot = new hangoutsBot("someone@gmail.com", "password");

bot.on('online', function() {

bot.on('message', function(from, message) {
    console.log(from + ">> " + message);

Original source: hangouts-bot README

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download