Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Add Google Hangouts Chat support to Botkit #1414

Merged
merged 5 commits into from
Oct 19, 2018

Conversation

ouadie-lahdioui
Copy link
Collaborator

Hi everybody 👋

This PR adds support for Google Hangouts Chat platform into Botkit 🎉

screen shot 2018-07-18 at 14 14 45

Developers will be able to make hangouts bot simply like that :

var controller = Botkit.googlehangoutsbot({
    endpoint: 'WEB_SERVER_ENDPOINT',
    token: "YOUR_TOKEN"
});

Hear users expressions :

controller.hears('new thread', 'message_received', function (bot, message) {
  // Awesome code here
});

And replay with several methods :

  • .reply(...)
  • .replyAsNewThread(...)
  • .replyAsNewThread(...)

I'll make another PR on botkit-docs project to add documentation.

Enjoy

@ouadie-lahdioui ouadie-lahdioui changed the title Add Google Hangouts Chat support for Botkit Add Google Hangouts Chat support to Botkit Jul 18, 2018

controller.setupWebserver(3000, function (err, webserver) {
controller.createWebhookEndpoints(webserver, bot, function () {
console.log(`🚀 Congratulation, the web server is online !`);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In English, there is no space in front of the punctuation marks ; ! ? :

Copy link
Collaborator Author

@ouadie-lahdioui ouadie-lahdioui Jul 18, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@peterswimm
Copy link
Contributor

This fixes #497

@ouadie-lahdioui ouadie-lahdioui force-pushed the feature/GoogleHangoutsChat branch from edcf71f to c887fea Compare July 18, 2018 16:50
@benbrown benbrown self-requested a review July 20, 2018 18:24
@ouadie-lahdioui ouadie-lahdioui force-pushed the feature/GoogleHangoutsChat branch from c887fea to 33edb39 Compare July 22, 2018 19:16
@ouadie-lahdioui ouadie-lahdioui force-pushed the feature/GoogleHangoutsChat branch from 33edb39 to df842af Compare July 30, 2018 21:49
@guillain
Copy link

guillain commented Sep 4, 2018

Works as a charm, thanks guys :-)

@benbrown benbrown merged commit 45fd079 into howdyai:master Oct 19, 2018
@ouadie-lahdioui ouadie-lahdioui deleted the feature/GoogleHangoutsChat branch October 21, 2018 21:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants