Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| da73fe2bba | |||
|
bbc71547da
|
|||
|
8a3b86e27d
|
|||
|
|
e44e50c72a |
220
README.md
220
README.md
@@ -1,219 +1,3 @@
|
||||
# botka
|
||||
|
||||
botka is a chat bot built on the [Hubot][hubot] framework. It was
|
||||
initially generated by [generator-hubot][generator-hubot], and configured to be
|
||||
deployed on [Heroku][heroku] to get you up and running as quick as possible.
|
||||
|
||||
This README is intended to help get you started. Definitely update and improve
|
||||
to talk about your own instance, how to use and deploy, what functionality he
|
||||
has, etc!
|
||||
|
||||
[heroku]: http://www.heroku.com
|
||||
[hubot]: http://hubot.github.com
|
||||
[generator-hubot]: https://github.com/github/generator-hubot
|
||||
|
||||
### Running botka Locally
|
||||
|
||||
You can test your hubot by running the following, however some plugins will not
|
||||
behave as expected unless the [environment variables](#configuration) they rely
|
||||
upon have been set.
|
||||
|
||||
You can start botka locally by running:
|
||||
|
||||
% bin/hubot
|
||||
|
||||
You'll see some start up output and a prompt:
|
||||
|
||||
[Sat Feb 28 2015 12:38:27 GMT+0000 (GMT)] INFO Using default redis on localhost:6379
|
||||
botka>
|
||||
|
||||
Then you can interact with botka by typing `botka help`.
|
||||
|
||||
botka> botka help
|
||||
botka animate me <query> - The same thing as `image me`, except adds [snip]
|
||||
botka help - Displays all of the help commands that botka knows about.
|
||||
...
|
||||
|
||||
### Configuration
|
||||
|
||||
A few scripts (including some installed by default) require environment
|
||||
variables to be set as a simple form of configuration.
|
||||
|
||||
Each script should have a commented header which contains a "Configuration"
|
||||
section that explains which values it requires to be placed in which variable.
|
||||
When you have lots of scripts installed this process can be quite labour
|
||||
intensive. The following shell command can be used as a stop gap until an
|
||||
easier way to do this has been implemented.
|
||||
|
||||
grep -o 'hubot-[a-z0-9_-]\+' external-scripts.json | \
|
||||
xargs -n1 -i sh -c 'sed -n "/^# Configuration/,/^#$/ s/^/{} /p" \
|
||||
$(find node_modules/{}/ -name "*.coffee")' | \
|
||||
awk -F '#' '{ printf "%-25s %s\n", $1, $2 }'
|
||||
|
||||
How to set environment variables will be specific to your operating system.
|
||||
Rather than recreate the various methods and best practices in achieving this,
|
||||
it's suggested that you search for a dedicated guide focused on your OS.
|
||||
|
||||
### Scripting
|
||||
|
||||
An example script is included at `scripts/example.coffee`, so check it out to
|
||||
get started, along with the [Scripting Guide](scripting-docs).
|
||||
|
||||
For many common tasks, there's a good chance someone has already one to do just
|
||||
the thing.
|
||||
|
||||
[scripting-docs]: https://github.com/github/hubot/blob/master/docs/scripting.md
|
||||
|
||||
### external-scripts
|
||||
|
||||
There will inevitably be functionality that everyone will want. Instead of
|
||||
writing it yourself, you can use existing plugins.
|
||||
|
||||
Hubot is able to load plugins from third-party `npm` packages. This is the
|
||||
recommended way to add functionality to your hubot. You can get a list of
|
||||
available hubot plugins on [npmjs.com](npmjs) or by using `npm search`:
|
||||
|
||||
% npm search hubot-scripts panda
|
||||
NAME DESCRIPTION AUTHOR DATE VERSION KEYWORDS
|
||||
hubot-pandapanda a hubot script for panda responses =missu 2014-11-30 0.9.2 hubot hubot-scripts panda
|
||||
...
|
||||
|
||||
|
||||
To use a package, check the package's documentation, but in general it is:
|
||||
|
||||
1. Use `npm install --save` to add the package to `package.json` and install it
|
||||
2. Add the package name to `external-scripts.json` as a double quoted string
|
||||
|
||||
You can review `external-scripts.json` to see what is included by default.
|
||||
|
||||
##### Advanced Usage
|
||||
|
||||
It is also possible to define `external-scripts.json` as an object to
|
||||
explicitly specify which scripts from a package should be included. The example
|
||||
below, for example, will only activate two of the six available scripts inside
|
||||
the `hubot-fun` plugin, but all four of those in `hubot-auto-deploy`.
|
||||
|
||||
```json
|
||||
{
|
||||
"hubot-fun": [
|
||||
"crazy",
|
||||
"thanks"
|
||||
],
|
||||
"hubot-auto-deploy": "*"
|
||||
}
|
||||
```
|
||||
|
||||
**Be aware that not all plugins support this usage and will typically fallback
|
||||
to including all scripts.**
|
||||
|
||||
[npmjs]: https://www.npmjs.com
|
||||
|
||||
### hubot-scripts
|
||||
|
||||
Before hubot plugin packages were adopted, most plugins were held in the
|
||||
[hubot-scripts][hubot-scripts] package. Some of these plugins have yet to be
|
||||
migrated to their own packages. They can still be used but the setup is a bit
|
||||
different.
|
||||
|
||||
To enable scripts from the hubot-scripts package, add the script name with
|
||||
extension as a double quoted string to the `hubot-scripts.json` file in this
|
||||
repo.
|
||||
|
||||
[hubot-scripts]: https://github.com/github/hubot-scripts
|
||||
|
||||
## Persistence
|
||||
|
||||
If you are going to use the `hubot-redis-brain` package (strongly suggested),
|
||||
you will need to add the Redis to Go addon on Heroku which requires a verified
|
||||
account or you can create an account at [Redis to Go][redistogo] and manually
|
||||
set the `REDISTOGO_URL` variable.
|
||||
|
||||
% heroku config:add REDISTOGO_URL="..."
|
||||
|
||||
If you don't need any persistence feel free to remove the `hubot-redis-brain`
|
||||
from `external-scripts.json` and you don't need to worry about redis at all.
|
||||
|
||||
[redistogo]: https://redistogo.com/
|
||||
|
||||
## Adapters
|
||||
|
||||
Adapters are the interface to the service you want your hubot to run on, such
|
||||
as Campfire or IRC. There are a number of third party adapters that the
|
||||
community have contributed. Check [Hubot Adapters][hubot-adapters] for the
|
||||
available ones.
|
||||
|
||||
If you would like to run a non-Campfire or shell adapter you will need to add
|
||||
the adapter package as a dependency to the `package.json` file in the
|
||||
`dependencies` section.
|
||||
|
||||
Once you've added the dependency with `npm install --save` to install it you
|
||||
can then run hubot with the adapter.
|
||||
|
||||
% bin/hubot -a <adapter>
|
||||
|
||||
Where `<adapter>` is the name of your adapter without the `hubot-` prefix.
|
||||
|
||||
[hubot-adapters]: https://github.com/github/hubot/blob/master/docs/adapters.md
|
||||
|
||||
## Deployment
|
||||
|
||||
% heroku create --stack cedar
|
||||
% git push heroku master
|
||||
|
||||
If your Heroku account has been verified you can run the following to enable
|
||||
and add the Redis to Go addon to your app.
|
||||
|
||||
% heroku addons:add redistogo:nano
|
||||
|
||||
If you run into any problems, checkout Heroku's [docs][heroku-node-docs].
|
||||
|
||||
You'll need to edit the `Procfile` to set the name of your hubot.
|
||||
|
||||
More detailed documentation can be found on the [deploying hubot onto
|
||||
Heroku][deploy-heroku] wiki page.
|
||||
|
||||
### Deploying to UNIX or Windows
|
||||
|
||||
If you would like to deploy to either a UNIX operating system or Windows.
|
||||
Please check out the [deploying hubot onto UNIX][deploy-unix] and [deploying
|
||||
hubot onto Windows][deploy-windows] wiki pages.
|
||||
|
||||
[heroku-node-docs]: http://devcenter.heroku.com/articles/node-js
|
||||
[deploy-heroku]: https://github.com/github/hubot/blob/master/docs/deploying/heroku.md
|
||||
[deploy-unix]: https://github.com/github/hubot/blob/master/docs/deploying/unix.md
|
||||
[deploy-windows]: https://github.com/github/hubot/blob/master/docs/deploying/unix.md
|
||||
|
||||
## Campfire Variables
|
||||
|
||||
If you are using the Campfire adapter you will need to set some environment
|
||||
variables. If not, refer to your adapter documentation for how to configure it,
|
||||
links to the adapters can be found on [Hubot Adapters][hubot-adapters].
|
||||
|
||||
Create a separate Campfire user for your bot and get their token from the web
|
||||
UI.
|
||||
|
||||
% heroku config:add HUBOT_CAMPFIRE_TOKEN="..."
|
||||
|
||||
Get the numeric IDs of the rooms you want the bot to join, comma delimited. If
|
||||
you want the bot to connect to `https://mysubdomain.campfirenow.com/room/42`
|
||||
and `https://mysubdomain.campfirenow.com/room/1024` then you'd add it like
|
||||
this:
|
||||
|
||||
% heroku config:add HUBOT_CAMPFIRE_ROOMS="42,1024"
|
||||
|
||||
Add the subdomain hubot should connect to. If you web URL looks like
|
||||
`http://mysubdomain.campfirenow.com` then you'd add it like this:
|
||||
|
||||
% heroku config:add HUBOT_CAMPFIRE_ACCOUNT="mysubdomain"
|
||||
|
||||
[hubot-adapters]: https://github.com/github/hubot/blob/master/docs/adapters.md
|
||||
|
||||
## Restart the bot
|
||||
|
||||
You may want to get comfortable with `heroku logs` and `heroku restart` if
|
||||
you're having issues.
|
||||
|
||||
## House Rules
|
||||
|
||||
[Contributor Code of Conduct](http://contributor-covenant.org/version/1/2/0/) (TL;DR: Be excellent to each other.)
|
||||
## [MOVED] botka
|
||||
|
||||
This repo has been moved to our Gitea instance: https://gitea.kosmos.org/kosmos/botka
|
||||
|
||||
179
package-lock.json
generated
179
package-lock.json
generated
@@ -17,17 +17,6 @@
|
||||
"es6-promisify": "^5.0.0"
|
||||
}
|
||||
},
|
||||
"ajv": {
|
||||
"version": "6.10.0",
|
||||
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.0.tgz",
|
||||
"integrity": "sha512-nffhOpkymDECQyR0mnsUtoCE8RlX38G0rYP+wgLWFyZuUyuuojSSvi/+euOiQBIn63whYwYVIIH1TvE3tu4OEg==",
|
||||
"requires": {
|
||||
"fast-deep-equal": "^2.0.1",
|
||||
"fast-json-stable-stringify": "^2.0.0",
|
||||
"json-schema-traverse": "^0.4.1",
|
||||
"uri-js": "^4.2.2"
|
||||
}
|
||||
},
|
||||
"amdefine": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz",
|
||||
@@ -124,9 +113,9 @@
|
||||
"integrity": "sha1-aN/1++YMUes3cl6p4+0xDcwed24="
|
||||
},
|
||||
"brace-expansion": {
|
||||
"version": "1.1.8",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.8.tgz",
|
||||
"integrity": "sha1-wHshHHyVLsH479Uad+8NHTmQopI=",
|
||||
"version": "1.1.11",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
|
||||
"integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
|
||||
"requires": {
|
||||
"balanced-match": "^1.0.0",
|
||||
"concat-map": "0.0.1"
|
||||
@@ -392,11 +381,6 @@
|
||||
"resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz",
|
||||
"integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU="
|
||||
},
|
||||
"fast-deep-equal": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz",
|
||||
"integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk="
|
||||
},
|
||||
"fast-json-stable-stringify": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz",
|
||||
@@ -503,9 +487,9 @@
|
||||
}
|
||||
},
|
||||
"http-parser-js": {
|
||||
"version": "0.4.9",
|
||||
"resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.4.9.tgz",
|
||||
"integrity": "sha1-6hoE+2St/wJC6ZdPKX3Uw8rSceE="
|
||||
"version": "0.5.0",
|
||||
"resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.0.tgz",
|
||||
"integrity": "sha512-cZdEF7r4gfRIq7ezX9J0T+kQmJNOub71dWbgAXVHDct80TKP4MCETtZQ31xyv38UwgzkWPYF/Xc0ge55dW9Z9w=="
|
||||
},
|
||||
"http-signature": {
|
||||
"version": "1.2.0",
|
||||
@@ -1014,9 +998,8 @@
|
||||
}
|
||||
},
|
||||
"hubot-xmpp": {
|
||||
"version": "0.2.5",
|
||||
"resolved": "https://registry.npmjs.org/hubot-xmpp/-/hubot-xmpp-0.2.5.tgz",
|
||||
"integrity": "sha1-/8PfqqejTVSz2SPqcWcRLErcnB0=",
|
||||
"version": "github:67P/hubot-xmpp#acd71c36486c48a91e75e91bb58a436a2b8de03b",
|
||||
"from": "github:67P/hubot-xmpp#dev",
|
||||
"requires": {
|
||||
"node-xmpp-client": "3.0.0",
|
||||
"uuid": "2.0.2"
|
||||
@@ -1136,11 +1119,6 @@
|
||||
"resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz",
|
||||
"integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM="
|
||||
},
|
||||
"json-schema-traverse": {
|
||||
"version": "0.4.1",
|
||||
"resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
|
||||
"integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg=="
|
||||
},
|
||||
"json-stringify-safe": {
|
||||
"version": "5.0.1",
|
||||
"resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",
|
||||
@@ -1325,9 +1303,9 @@
|
||||
"integrity": "sha1-S6HYkP3iSbAx3KA7w36q8yVlbxw="
|
||||
},
|
||||
"ltx": {
|
||||
"version": "2.7.1",
|
||||
"resolved": "https://registry.npmjs.org/ltx/-/ltx-2.7.1.tgz",
|
||||
"integrity": "sha1-Dly9y1vxeM+ngx6kHcMj2XQiMVo=",
|
||||
"version": "2.8.1",
|
||||
"resolved": "https://registry.npmjs.org/ltx/-/ltx-2.8.1.tgz",
|
||||
"integrity": "sha512-l4H1FS9I6IVqwvIpUHsSgyxE6t2jP7qd/2MeVG1UhmVK6vlHsQpfm2KNUcbdImeE0ai04vl1qTCF4CPCJqhknQ==",
|
||||
"requires": {
|
||||
"inherits": "^2.0.1"
|
||||
}
|
||||
@@ -1369,9 +1347,9 @@
|
||||
}
|
||||
},
|
||||
"minimist": {
|
||||
"version": "0.0.8",
|
||||
"resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz",
|
||||
"integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0="
|
||||
"version": "1.2.0",
|
||||
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",
|
||||
"integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ="
|
||||
},
|
||||
"mkdirp": {
|
||||
"version": "0.5.1",
|
||||
@@ -1379,6 +1357,13 @@
|
||||
"integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=",
|
||||
"requires": {
|
||||
"minimist": "0.0.8"
|
||||
},
|
||||
"dependencies": {
|
||||
"minimist": {
|
||||
"version": "0.0.8",
|
||||
"resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz",
|
||||
"integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0="
|
||||
}
|
||||
}
|
||||
},
|
||||
"ms": {
|
||||
@@ -1418,103 +1403,6 @@
|
||||
"minimist": "^1.2.0",
|
||||
"node-xmpp-core": "^4.1.0",
|
||||
"request": "^2.65.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"minimist": {
|
||||
"version": "1.2.0",
|
||||
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",
|
||||
"integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ="
|
||||
},
|
||||
"request": {
|
||||
"version": "2.88.0",
|
||||
"resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz",
|
||||
"integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==",
|
||||
"requires": {
|
||||
"aws-sign2": "~0.7.0",
|
||||
"aws4": "^1.8.0",
|
||||
"caseless": "~0.12.0",
|
||||
"combined-stream": "~1.0.6",
|
||||
"extend": "~3.0.2",
|
||||
"forever-agent": "~0.6.1",
|
||||
"form-data": "~2.3.2",
|
||||
"har-validator": "~5.1.0",
|
||||
"http-signature": "~1.2.0",
|
||||
"is-typedarray": "~1.0.0",
|
||||
"isstream": "~0.1.2",
|
||||
"json-stringify-safe": "~5.0.1",
|
||||
"mime-types": "~2.1.19",
|
||||
"oauth-sign": "~0.9.0",
|
||||
"performance-now": "^2.1.0",
|
||||
"qs": "~6.5.2",
|
||||
"safe-buffer": "^5.1.2",
|
||||
"tough-cookie": "~2.4.3",
|
||||
"tunnel-agent": "^0.6.0",
|
||||
"uuid": "^3.3.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"aws4": {
|
||||
"version": "1.8.0",
|
||||
"resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz",
|
||||
"integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ=="
|
||||
},
|
||||
"combined-stream": {
|
||||
"version": "1.0.7",
|
||||
"resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.7.tgz",
|
||||
"integrity": "sha512-brWl9y6vOB1xYPZcpZde3N9zDByXTosAeMDo4p1wzo6UMOX4vumB+TP1RZ76sfE6Md68Q0NJSrE/gbezd4Ul+w==",
|
||||
"requires": {
|
||||
"delayed-stream": "~1.0.0"
|
||||
}
|
||||
},
|
||||
"extend": {
|
||||
"version": "3.0.2",
|
||||
"resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz",
|
||||
"integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g=="
|
||||
},
|
||||
"form-data": {
|
||||
"version": "2.3.3",
|
||||
"resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz",
|
||||
"integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==",
|
||||
"requires": {
|
||||
"asynckit": "^0.4.0",
|
||||
"combined-stream": "^1.0.6",
|
||||
"mime-types": "^2.1.12"
|
||||
}
|
||||
},
|
||||
"har-validator": {
|
||||
"version": "5.1.3",
|
||||
"resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz",
|
||||
"integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==",
|
||||
"requires": {
|
||||
"ajv": "^6.5.5",
|
||||
"har-schema": "^2.0.0"
|
||||
}
|
||||
},
|
||||
"oauth-sign": {
|
||||
"version": "0.9.0",
|
||||
"resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz",
|
||||
"integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ=="
|
||||
},
|
||||
"safe-buffer": {
|
||||
"version": "5.1.2",
|
||||
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
|
||||
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
|
||||
},
|
||||
"tough-cookie": {
|
||||
"version": "2.4.3",
|
||||
"resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz",
|
||||
"integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==",
|
||||
"requires": {
|
||||
"psl": "^1.1.24",
|
||||
"punycode": "^1.4.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"uuid": {
|
||||
"version": "3.3.2",
|
||||
"resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz",
|
||||
"integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA=="
|
||||
}
|
||||
}
|
||||
},
|
||||
"node-xmpp-core": {
|
||||
@@ -1574,6 +1462,11 @@
|
||||
"wordwrap": "~0.0.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"minimist": {
|
||||
"version": "0.0.10",
|
||||
"resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz",
|
||||
"integrity": "sha1-3j+YVD2/lggr5IrRoMfNqDYwHc8="
|
||||
},
|
||||
"wordwrap": {
|
||||
"version": "0.0.3",
|
||||
"resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.3.tgz",
|
||||
@@ -1661,7 +1554,7 @@
|
||||
},
|
||||
"reconnect-core": {
|
||||
"version": "https://github.com/dodo/reconnect-core/tarball/merged",
|
||||
"integrity": "sha1-udryrcRbGabMX9LwSPjZQGzs5Jg=",
|
||||
"integrity": "sha512-wZK/v5ZaNaSUs2Wnwh2YSX/Jqv6bQHKNEwojdzV11tByKziR9ikOssf5tvUhx+8/oCBz6AakOFAjZuqPoiRHJQ==",
|
||||
"requires": {
|
||||
"backoff": "~2.3.0"
|
||||
}
|
||||
@@ -1930,9 +1823,9 @@
|
||||
}
|
||||
},
|
||||
"uglify-js": {
|
||||
"version": "3.5.4",
|
||||
"resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.5.4.tgz",
|
||||
"integrity": "sha512-GpKo28q/7Bm5BcX9vOu4S46FwisbPbAmkkqPnGIpKvKTM96I85N6XHQV+k4I6FA2wxgLhcsSyHoNhzucwCflvA==",
|
||||
"version": "3.5.11",
|
||||
"resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.5.11.tgz",
|
||||
"integrity": "sha512-izPJg8RsSyqxbdnqX36ExpbH3K7tDBsAU/VfNv89VkMFy3z39zFjunQGsSHOlGlyIfGLGprGeosgQno3bo2/Kg==",
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"commander": "~2.20.0",
|
||||
@@ -2035,14 +1928,14 @@
|
||||
}
|
||||
},
|
||||
"websocket-extensions": {
|
||||
"version": "0.1.2",
|
||||
"resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.2.tgz",
|
||||
"integrity": "sha1-Dhh4HeYpoYMIzhSBZQ9n/6JpOl0="
|
||||
"version": "0.1.3",
|
||||
"resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.3.tgz",
|
||||
"integrity": "sha512-nqHUnMXmBzT0w570r2JpJxfiSD1IzoI+HGVdd3aZ0yNi3ngvQ4jv1dtHt5VGxfI2yj5yqImPhOK4vmIh2xMbGg=="
|
||||
},
|
||||
"which": {
|
||||
"version": "1.3.0",
|
||||
"resolved": "https://registry.npmjs.org/which/-/which-1.3.0.tgz",
|
||||
"integrity": "sha512-xcJpopdamTuY5duC/KnTTNBraPK54YwpenP4lzxU8H91GudWpFv38u0CKjclE1Wi2EH2EDz5LRcHcKbCIzqGyg==",
|
||||
"version": "1.3.1",
|
||||
"resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz",
|
||||
"integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==",
|
||||
"requires": {
|
||||
"isexe": "^2.0.0"
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
"hubot-redis-brain": "~1.0.0",
|
||||
"hubot-remotestorage-logger": "^0.7.1",
|
||||
"hubot-web-push-notifications": "^1.2.0",
|
||||
"hubot-xmpp": "^0.2.5",
|
||||
"hubot-xmpp": "github:67P/hubot-xmpp#dev",
|
||||
"request": "2.88.0"
|
||||
}
|
||||
}
|
||||
|
||||
5
scripts/health.js
Normal file
5
scripts/health.js
Normal file
@@ -0,0 +1,5 @@
|
||||
module.exports = function (robot) {
|
||||
robot.router.get('/health/live', (req, res) => {
|
||||
res.send('OK');
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user