Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

@benbrown benbrown self-requested a review July 20, 2018 18:24
@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 join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants