hubotio / hubot

A customizable life embetterment robot.
https://hubotio.github.io/hubot/
MIT License
16.64k stars 3.75k forks source link

Loading an adapter from local folder #1624

Closed joeyguerra closed 1 year ago

joeyguerra commented 1 year ago

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.