This section is to help users who want to explore hubot from a developer's point of view. The hubot we are talking about is provided by Github. We have customized it to work with individual tools using coffeescript, node packages and REST API. Let us explore more about the structure that is followed by each hubot created and customized by us: Each bot will have the following folders/files in it. Click on each link to know more about its purpose: Expand |
---|
| This folder contains system files (shell scripts/batch file) which is used to run hubot. When we start/restart the hubot, we basically execute this shell/batch file residing in this folder, so it is the main entrypoint of every hubot. Warning |
---|
It is recommended that you do not tamper with this file to avoid errors in hubot execution |
|
Expand |
---|
| Hubot is a node based software, hence needs node packages to run. As the name suggests, this folder will contain all those packages to aid the hubot. You might wonder why there is a predefined node_modules folder in the bot, we could have just mentioned all dependencies in a package.json file and run npm install command each time we installed the bot. The reason we have an explicit folder pre-filled with packages is that some node packages (viz. githubot etc.) are customized by us to work exclusively with our hubots. |
Expand |
---|
| This folder contains all the coffeescripts and js files through which hubot will listen and execute your commands. |
Expand |
---|
title | external-scripts.json |
---|
| This json file will contain an array of node package names which you want to be loaded to memory every time the hubot starts. |
Expand |
---|
| This file will contain an array of coffeescript files which you want to be loaded when hubot starts. As soon as the bot starts, it will search for the Coffee files mentioned here in myhubot/node_modules/hubot-scripts/src/scripts folder. If you have your coffeescript inĀ myhubot/scripts folder then no need to mention it in this file. |
|