Compare commits
41 Commits
v2.1.0
...
e02c3bb9b6
| Author | SHA1 | Date | |
|---|---|---|---|
| e02c3bb9b6 | |||
| 564df1770a | |||
|
6076b5e60f
|
|||
|
e29b67749f
|
|||
| ed2a3c91a8 | |||
|
|
76c1ac0655 | ||
|
|
03dedbbae1 | ||
| 0feed8abe0 | |||
|
|
1a444465a8 | ||
| 62b63a5866 | |||
|
bed00622b1
|
|||
| ff38fbaf0f | |||
| fa9083c169 | |||
| 31574f25eb | |||
| 28df2547a2 | |||
| cd0a9cad44 | |||
| 89c73d06c0 | |||
| 1aed0a38c5 | |||
| 311df067db | |||
| 603b58a308 | |||
| e3162ef44f | |||
| 5bfdd743d5 | |||
| 1d50beefeb | |||
|
|
a34b315e66 | ||
| 9724639b4f | |||
| 0cae1892eb | |||
| 1e90b2027f | |||
| 04bee3d705 | |||
| 4f21a398e5 | |||
| 958c13d480 | |||
| 21a0e688c0 | |||
| 1f30a68ac3 | |||
| 37e88ab107 | |||
| cd756e7aa7 | |||
| 3113e8a679 | |||
| 275d39a316 | |||
| 62e2d3c438 | |||
| a8cf6644c7 | |||
| ea56b52c29 | |||
| 4e609d7abd | |||
| bce3c8f76d |
10
README.md
10
README.md
@@ -1,4 +1,4 @@
|
|||||||
# hal8000
|
## hal8000
|
||||||
|
|
||||||
hal8000 is a chat bot built on the [Hubot](https://hubot.github.com/)
|
hal8000 is a chat bot built on the [Hubot](https://hubot.github.com/)
|
||||||
framework. It's currently running in some channels on Freenode.
|
framework. It's currently running in some channels on Freenode.
|
||||||
@@ -20,11 +20,11 @@ you can open an HTTP tunnel with:
|
|||||||
required ENV vars. Change it according to your needs, or use custom ENV vars
|
required ENV vars. Change it according to your needs, or use custom ENV vars
|
||||||
with the commands.
|
with the commands.
|
||||||
|
|
||||||
## Deployment
|
### Deployment
|
||||||
|
|
||||||
hal8000 is deployed by running Chef Solo against `dev.kosmos.org` with the
|
hal8000 is deployed by running Chef Zero against `barnard.kosmos.org` with the
|
||||||
cookbooks from our (private) [GitLab repo](https://gitlab.com/kosmos/chef).
|
cookbooks from our [Gitea repo](https://gitea.kosmos.org/kosmos/chef).
|
||||||
|
|
||||||
## House Rules
|
### House Rules
|
||||||
|
|
||||||
[Contributor Code of Conduct](http://contributor-covenant.org/version/1/2/0/) (TL;DR: Be excellent to each other.)
|
[Contributor Code of Conduct](http://contributor-covenant.org/version/1/2/0/) (TL;DR: Be excellent to each other.)
|
||||||
|
|||||||
@@ -8,8 +8,8 @@
|
|||||||
"hubot-plusplus",
|
"hubot-plusplus",
|
||||||
"hubot-tell",
|
"hubot-tell",
|
||||||
"hubot-seen",
|
"hubot-seen",
|
||||||
"hubot-rss-reader",
|
|
||||||
"hubot-incoming-webhook",
|
"hubot-incoming-webhook",
|
||||||
"hubot-yubikey-invalidation",
|
"hubot-yubikey-invalidation",
|
||||||
"hubot-kredits"
|
"hubot-kredits",
|
||||||
|
"hubot-schedule"
|
||||||
]
|
]
|
||||||
|
|||||||
3964
package-lock.json
generated
3964
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
17
package.json
17
package.json
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hal8000",
|
"name": "hal8000",
|
||||||
"version": "2.1.0",
|
"version": "2.3.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "./run.sh",
|
"start": "./run.sh",
|
||||||
@@ -14,23 +14,24 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"cheerio": "0.22.0",
|
"cheerio": "0.22.0",
|
||||||
"coffee-script": "^1.9.2",
|
"coffee-script": "^1.9.2",
|
||||||
"hubot": "^3.3.1",
|
"hubot": "^3.3.2",
|
||||||
"hubot-auth": "^1.2.0",
|
"hubot-auth": "^1.2.0",
|
||||||
"hubot-help": "^1.0.1",
|
"hubot-help": "^1.0.1",
|
||||||
"hubot-incoming-webhook": "^1.1.1",
|
"hubot-incoming-webhook": "^1.1.1",
|
||||||
"hubot-irc": "67P/hubot-irc#dev",
|
"hubot-irc": "github:67P/hubot-irc#dev",
|
||||||
"hubot-kredits": "^3.1.0",
|
"hubot-kredits": "github:67P/hubot-kredits#7db7a83a342e1df378250f02381b783752cdd930",
|
||||||
"hubot-plusplus": "github:67P/hubot-plusplus#feature/configurable_points_term",
|
"hubot-plusplus": "github:67P/hubot-plusplus#feature/configurable_points_term",
|
||||||
"hubot-read-tweet": "0.0.2",
|
"hubot-read-tweet": "0.0.2",
|
||||||
"hubot-redis-brain": "1.0.0",
|
"hubot-redis-brain": "1.0.0",
|
||||||
"hubot-rss-reader": "github:67P/hubot-rss-reader#e3252d63a908c065671c5416a0a4bffa323b27c6",
|
"hubot-rules": "^1.0.0",
|
||||||
"hubot-rules": "^0.1.0",
|
"hubot-schedule": "^0.7.0",
|
||||||
"hubot-scripts": "^2.5.16",
|
"hubot-scripts": "^2.5.16",
|
||||||
"hubot-seen": "github:67P/hubot-seen#fix_debug",
|
"hubot-seen": "github:67P/hubot-seen#fix_debug",
|
||||||
"hubot-shipit": "^0.2.0",
|
"hubot-shipit": "^0.2.0",
|
||||||
"hubot-tell": "^1.2.3",
|
"hubot-tell": "^1.2.3",
|
||||||
|
"hubot-xmpp": "github:67P/hubot-xmpp#dev",
|
||||||
"hubot-yubikey-invalidation": "0.0.3",
|
"hubot-yubikey-invalidation": "0.0.3",
|
||||||
"node-fetch": "^2.3.0",
|
"node-fetch": "^2.6.0",
|
||||||
"request": "^2.88.0"
|
"request": "^2.88.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
5
run.sh
5
run.sh
@@ -1,4 +1,4 @@
|
|||||||
npm link hubot-kredits
|
# npm link hubot-kredits
|
||||||
|
|
||||||
PORT=8888 \
|
PORT=8888 \
|
||||||
HUBOT_LOG_LEVEL="debug" \
|
HUBOT_LOG_LEVEL="debug" \
|
||||||
@@ -21,6 +21,9 @@ KREDITS_ROOM="#kosmos-random" \
|
|||||||
KREDITS_WALLET_PATH="wallet.json" \
|
KREDITS_WALLET_PATH="wallet.json" \
|
||||||
KREDITS_WALLET_PASSWORD="foo" \
|
KREDITS_WALLET_PASSWORD="foo" \
|
||||||
KREDITS_PROVIDER_URL="http://localhost:7545" \
|
KREDITS_PROVIDER_URL="http://localhost:7545" \
|
||||||
|
KREDITS_DAO_ADDRESS="" \
|
||||||
|
KREDITS_GITHUB_KEY="" \
|
||||||
|
KREDITS_GITHUB_SECRET="" \
|
||||||
KREDITS_GITHUB_REPO_BLACKLIST="" \
|
KREDITS_GITHUB_REPO_BLACKLIST="" \
|
||||||
KREDITS_MEDIAWIKI_URL="https://wiki.kosmos.org/" \
|
KREDITS_MEDIAWIKI_URL="https://wiki.kosmos.org/" \
|
||||||
bin/hubot --name hal7000
|
bin/hubot --name hal7000
|
||||||
|
|||||||
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