Closed kravchenko-rn closed 7 years ago
This will be fixed on the new version as well.
It seems that you're using an older version of the api. Please pull the latest change and make sure to go thru the documentation (readme file) and go thru the step by step process (we've recently introduce a change on the way the one time configuration is set up).
I tested this with a brand new bot and it seems to be working as expected. Please open a new issue if it persisted on your end.
For exaple:
@FbBotMillController(eventType = FbBotMillEventType.MESSAGE_PATTERN, pattern = "(?i:hi)|(?i:hello)|(?i:hey)|(?i:good day)|(?i:home)") public void replyWithQuickReply(MessageEnvelope envelope) { ... }
will not work. A message ivent will not be created because the following block inbuildAnnotatedBehaviour()
method fails:try { FbBotMillController e = (FbBotMillController)method.getAnnotation(FbBotMillController.class); this.event = this.toEventActionFrame(e); method.invoke(this, new Object[0]); } catch (Exception var7) { logger.error(var7.getMessage()); }
It fails on the line
method.invoke(this, new Object[0]);