I'm using Hubot with the Hubot-Flowdock adapter.
I'm using robot.hear
to respond to messages with a certain string in them (e.g. "chocolate").
I then call msg.send
with a message, which also happens to contain the trigger string ("chocolate") in it.
This causes Hubot to hear itself, and then just loop endlessly, triggering over and over again.
I'm trying to find a way to get Hubot to not respond to itself.
From what I gather, the Hubot Campfire adapter seems to include a specific check to prevent Hubot from listening to itself:
However, other adapters don't seem to have this.
Is there another way to write a Hubot script with robot.hear
and msg.send
such that it will not respond to itself?