botman / driver-slack

BotMan Slack Driver
MIT License
51 stars 54 forks source link

No hasMatchingEvent on SlackDriver (non-RTM one)? #30

Open sielver opened 6 years ago

sielver commented 6 years ago

Because SlackDriver doesn't redefine hasMatchingEvent from DriverInterface, there seems to be no way of making use of BotMan's event handler mechanism ($botman->on('event_name', ...)) using this driver.

Instead, it seems that the only way is to use the fallback handler.

Is there a reason for this?

robertodormepoco commented 6 years ago

bumped on the same thing today, +1 for the "is there a reason for this?"

sielver commented 6 years ago

@robertodormepoco I've added a pull request for this (see #31), feel free to give it a try.

robertodormepoco commented 6 years ago

@sielver Thanks, i'll try it.