hubotio / hubot

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

I am not able to run the scripts in subfolder under scripts folder. #1522

Closed hgarg95 closed 1 year ago

hgarg95 commented 4 years ago

Is it possible to organize custom scripts in the scripts directory into sub folders and have them automatically loaded by hubot?

Bonniebiotch commented 4 years ago

Hello

xurizaemon commented 3 years ago

The magic happens in https://github.com/hubotio/hubot/blob/7795fe53fb1a3dde85537589149cab0f0b58404a/bin/hubot.js#L114-L128

If it doesn't work as you desired, you could move your scripts into a separate Hubot plugin. Many hubot script plugins include a main coffee or JS file which in turn loads the rest of the code from the author's preferred layout.

Generally I'd recommend working in alignment with your framework - "swim with the stream". If Hubot doesn't support your ideal layout, consider whether changing Hubot's layout to suit your needs has sufficient benefit for the effort you'll go to.

joeyguerra commented 1 year ago

Gone stale.