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

Conversation not possible in Google Hangouts Chat Private Message #1840

Closed
julbrs opened this issue Oct 28, 2019 · 1 comment
Closed

Conversation not possible in Google Hangouts Chat Private Message #1840

julbrs opened this issue Oct 28, 2019 · 1 comment
Assignees
Labels

Comments

@julbrs
Copy link
Contributor

julbrs commented Oct 28, 2019

I am trying to implement a conversation using the googlehangouts adapter, and my goal is to be able to chat with my bot in PM. Unfortunately it seems to work only in public room.

Are you sure this is an issue with the Botkit core module?

This issue is occurring using the npm dependency botbuilder-adapter-hangouts after creating a new project with yo botkit.

What are you trying to achieve or the steps to reproduce?

I have created a feature create that implement a Conversation :

  // Init the convo
  let convo = new BotkitConversation('create', controller);

  // Create a yes/no question in the default thread...
  convo.ask('Do you want to create a new system ?', [
    {
      pattern:  'yes',
      handler: async(response, convo, bot) => {
        await convo.gotoThread('360wp');
      }

    },
    {
      default:  true,
      handler: async(response, convo, bot) => {
        await convo.gotoThread('quit');
      },
    },
  ], 'create');

  // 360wp
  convo.addQuestion('OK which 360wp version ? (`null` if none, `master`, `develop`, `v2019.4`...))', async(res,conv) => {
    await conv.gotoThread('360eyes');
  }, {key: "wp"}, '360wp');

...

Then call this convo with a hears:

  controller.addDialog(convo);

  controller.hears('create', ['direct_message', 'message'], async(bot, message) => {
    await bot.beginDialog('create');
  });

What was the result you received?

When I speak to the bot via public room it work as expected, the conversation is the following:

Screen Shot 2019-10-28 at 11 56 39 AM

But in private message I have this:

Screen Shot 2019-10-28 at 11 57 48 AM

Event using the @botname:

Screen Shot 2019-10-28 at 11 58 11 AM

What did you expect?

I was expecting to see the conversation on private message the same as public room.

Context:

  • Botkit version: 4.5.0
  • Messaging Platform: Google Hangouts Chat
  • Node version: 12.10
  • Os: Mac OS 10.14.6
  • Any other relevant information: using the botbuilder-adapter-hangouts 1.0.3

If you have any idea where to start searching for this, let me know I can try to find / search / PR this !

And to finish thanks for this nice framework that simplify our work !

@benbrown benbrown self-assigned this Oct 28, 2019
@stale
Copy link

stale bot commented Dec 27, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants