hubotio / hubot

A customizable life embetterment robot.

Home Page:https://hubotio.github.io/hubot/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Loading an adapter from local folder

joeyguerra opened this issue · comments

I want to load an adapter that is in the same folder. Notice this line in robot.js. It doesn't allow me to specify a path to a local file to load as an adapter.

      const path = Array.from(HUBOT_DEFAULT_ADAPTERS).indexOf(adapter) !== -1 ? `${this.adapterPath}/${adapter}` : `hubot-${adapter}`

I want to do something like hubot -a ./src/adapters/MyCustomAdapter.mjs.