ekmartin / slack-irc

Connects Slack and IRC channels by sending messages back and forth.
MIT License
588 stars 157 forks source link

Update use as node module example #163

Closed rosshettel closed 7 years ago

rosshettel commented 7 years ago

In my testing, I found the example given for using slack-irc as a node module is incorrect.

index.js exports one property (default) that points to _helpers.createBots

ekmartin commented 7 years ago

Awkward, thanks for noticing. This must have broken when I upgraded to babel 6, ages ago. I added babel-plugin-add-module-exports though, which should make it possible to do require('slack-irc')(config).

Please test with version 3.8.6 when you get time :)