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

What is the recommended alternative to ignore_from_self? #57

Closed
stevegrossi opened this issue Oct 10, 2016 · 2 comments
Closed

What is the recommended alternative to ignore_from_self? #57

stevegrossi opened this issue Oct 10, 2016 · 2 comments

Comments

@stevegrossi
Copy link

I see there was an ignore_from_self? option in 0.1 that appears to have been removed. Is there another recommended way to prevent Hedwig bots from getting stuck in loops responding to themselves?

Here is how I implemented this myself, but I wonder if Hedwig still provides a way.

@scrogson
Copy link
Member

Hi @stevegrossi, that functionality should be handled in the adapter you're using. In the case that it is not, you can handle it in the handle_in/2 function in your robot module.

I've made some recent changes on master that allow the user to have full control over whether a message should be dispatched to the responders or not. But I'm not sure if the Flowdock adapter author has updated it to work with those changes.

@stevegrossi
Copy link
Author

Thanks for the direction! I don't think the Flowdock adapter has been updated for this, so I'll look to contribute there.

And thanks so much for your work on Hedwig. It's been a blast to learn and use, and our chatbot has been a great way to get folks from my local Elixir meetup involved in writing Elixir code 👍

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