hubot icon indicating copy to clipboard operation
hubot copied to clipboard

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

Open hgarg95 opened this issue 5 years ago • 2 comments
trafficstars

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

hgarg95 avatar Mar 11 '20 05:03 hgarg95

Hello

Bonniebiotch avatar Apr 25 '20 22:04 Bonniebiotch

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.

xurizaemon avatar Nov 27 '21 06:11 xurizaemon

Gone stale.

joeyguerra avatar Apr 17 '23 19:04 joeyguerra