1 Commits

Author SHA1 Message Date
e29b67749f Add liveness check endpoint
`GET /health/live` returns "200 OK"
2021-04-09 09:43:29 +02:00
4 changed files with 1082 additions and 814 deletions

View File

@@ -1,3 +1,30 @@
## [MOVED] hal8000
# hal8000
This repo has been moved to our Gitea instance: https://gitea.kosmos.org/kosmos/hal8000
hal8000 is a chat bot built on the [Hubot](https://hubot.github.com/)
framework. It's currently running in some channels on Freenode.
### Running hal8000 locally
npm start
### Incoming webhooks in development
With [ngrok](https://ngrok.com) installed (and the ngrok binary in your PATH),
you can open an HTTP tunnel with:
npm run ngrok
### Configuration
`run.sh` (which is used for `npm start`) has some default values for the
required ENV vars. Change it according to your needs, or use custom ENV vars
with the commands.
## Deployment
hal8000 is deployed by running Chef Zero against `barnard.kosmos.org` with the
cookbooks from our [Gitea repo](https://gitea.kosmos.org/kosmos/chef).
## House Rules
[Contributor Code of Conduct](http://contributor-covenant.org/version/1/2/0/) (TL;DR: Be excellent to each other.)

1858
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -19,7 +19,7 @@
"hubot-help": "^1.0.1",
"hubot-incoming-webhook": "^1.1.1",
"hubot-irc": "github:67P/hubot-irc#dev",
"hubot-kredits": "github:67P/hubot-kredits#7db7a83a342e1df378250f02381b783752cdd930",
"hubot-kredits": "^3.8.0",
"hubot-plusplus": "github:67P/hubot-plusplus#feature/configurable_points_term",
"hubot-read-tweet": "0.0.2",
"hubot-redis-brain": "1.0.0",

5
scripts/health.js Normal file
View File

@@ -0,0 +1,5 @@
module.exports = function (robot) {
robot.router.get('/health/live', (req, res) => {
res.send('OK');
});
}