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

Bot sending infinite messages #3

Open
abhishekchotaliya opened this issue Jul 9, 2018 · 1 comment
Open

Bot sending infinite messages #3

abhishekchotaliya opened this issue Jul 9, 2018 · 1 comment

Comments

@abhishekchotaliya
Copy link

While receiving any inputs, the bot is responding with sending message infinitely.

Eg. With the code mentioned in the readme,

botmaster.use({
  type: 'incoming',
  name: 'slack-incoming-middleware',
  controller: (bot, update) => {
    return bot.reply(update, 'Hello world!');
  }
});

Bot is responding:

Hello world!
Hello world!
Hello world!
Hello world!
...
...

I've followed all the steps mentioned in the readme file, but don't know if this issue is happening because of some configuration problem.

@jdwuarin
Copy link
Member

That is weird. The thing is that the Slack API also sends messages that the bot sent itself back to the botmaster server. But this module should ignore those based on the id of the sender. Have you looked to see what the full message object looks like and what is going on with the ids?

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

No branches or pull requests

2 participants