Compare commits
No commits in common. "master" and "v1.1.0" have entirely different histories.
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 Zero against `barnard.kosmos.org` with the
|
hal8000 is deployed by running Chef Solo against `dev.kosmos.org` with the
|
||||||
cookbooks from our [Gitea repo](https://gitea.kosmos.org/kosmos/chef).
|
cookbooks from our (private) [GitLab repo](https://gitlab.com/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.)
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
npm install
|
||||||
export PATH="node_modules/.bin:node_modules/hubot/node_modules/.bin:$PATH"
|
export PATH="node_modules/.bin:node_modules/hubot/node_modules/.bin:$PATH"
|
||||||
|
|
||||||
exec node_modules/.bin/hubot --name "hal9000" "$@"
|
exec node_modules/.bin/hubot --name "hal9000" "$@"
|
||||||
|
@ -1,12 +1,15 @@
|
|||||||
[
|
[
|
||||||
"@kredits/hubot-kredits",
|
|
||||||
"hubot-auth",
|
"hubot-auth",
|
||||||
"hubot-help",
|
"hubot-help",
|
||||||
|
"hubot-read-tweet",
|
||||||
"hubot-redis-brain",
|
"hubot-redis-brain",
|
||||||
"hubot-rules",
|
"hubot-rules",
|
||||||
"hubot-shipit",
|
"hubot-shipit",
|
||||||
|
"hubot-plusplus",
|
||||||
"hubot-tell",
|
"hubot-tell",
|
||||||
"hubot-seen",
|
"hubot-seen",
|
||||||
|
"hubot-rss-reader",
|
||||||
"hubot-incoming-webhook",
|
"hubot-incoming-webhook",
|
||||||
"hubot-schedule"
|
"hubot-yubikey-invalidation",
|
||||||
|
"hubot-kredits"
|
||||||
]
|
]
|
||||||
|
8813
package-lock.json
generated
8813
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
36
package.json
36
package.json
@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"name": "hal8000",
|
"name": "hal8000",
|
||||||
"version": "3.1.0",
|
"version": "1.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "./run.sh",
|
"start": "./run.sh",
|
||||||
"ngrok": "ngrok http -region=eu -hostname=hubot-dev.kosmos.org localhost:8888"
|
"ngrok": "ngrok http -region=ap -hostname=hubot-dev.kosmos.org localhost:8888"
|
||||||
},
|
},
|
||||||
"authors": [
|
"authors": [
|
||||||
"Sebastian Kippe <sebastian@kip.pe>",
|
"Sebastian Kippe <sebastian@kip.pe>",
|
||||||
@ -12,23 +12,29 @@
|
|||||||
],
|
],
|
||||||
"description": "Heuristically programmed ALgorithmic computer",
|
"description": "Heuristically programmed ALgorithmic computer",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@kredits/hubot-kredits": "^4.1.0",
|
"cheerio": "0.19.0",
|
||||||
"cheerio": "0.22.0",
|
|
||||||
"coffee-script": "^1.9.2",
|
"coffee-script": "^1.9.2",
|
||||||
"hubot": "^3.3.2",
|
"hubot": "^2.12.0",
|
||||||
"hubot-auth": "^1.2.0",
|
"hubot-auth": "^1.2.0",
|
||||||
"hubot-help": "^1.0.1",
|
"hubot-help": "^0.1.1",
|
||||||
"hubot-incoming-webhook": "^1.1.1",
|
"hubot-incoming-webhook": "^1.0.1",
|
||||||
"hubot-irc": "github:67P/hubot-irc#dev",
|
"hubot-irc": "^0.2.9",
|
||||||
"hubot-redis-brain": "1.0.0",
|
"hubot-kredits": "^1.4.2",
|
||||||
"hubot-rules": "^1.0.0",
|
"hubot-plusplus": "^1.1.5",
|
||||||
"hubot-schedule": "^0.7.0",
|
"hubot-read-tweet": "0.0.2",
|
||||||
|
"hubot-redis-brain": "0.0.2",
|
||||||
|
"hubot-rss-reader": "git://github.com/67P/hubot-rss-reader.git",
|
||||||
|
"hubot-rules": "^0.1.0",
|
||||||
"hubot-scripts": "^2.5.16",
|
"hubot-scripts": "^2.5.16",
|
||||||
"hubot-seen": "github:67P/hubot-seen#fix_debug",
|
"hubot-seen": "https://github.com/67P/hubot-seen.git#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",
|
||||||
"node-fetch": "^2.6.7",
|
"node-fetch": "^1.6.3",
|
||||||
"request": "^2.88.2"
|
"request": "2.30.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": "6.x.x",
|
||||||
|
"npm": "2.1.x"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
23
run.sh
23
run.sh
@ -1,27 +1,24 @@
|
|||||||
# npm link @kredits/hubot-kredits
|
# cp ~/src/remotestorage/modules/src/chat-messages.js ~/src/kosmos/hubot-remotestorage-logger/lib/chat-messages.es6
|
||||||
|
# rm -rf node_modules/hubot-openassets
|
||||||
|
# npm install
|
||||||
|
|
||||||
PORT=8888 \
|
PORT=8888 \
|
||||||
HUBOT_LOG_LEVEL="debug" \
|
HUBOT_IRC_SERVER="irc.freenode.net" \
|
||||||
HUBOT_IRC_SERVER="irc.libera.chat" \
|
|
||||||
HUBOT_IRC_ROOMS="#kosmos-dev,#kosmos-random" \
|
HUBOT_IRC_ROOMS="#kosmos-dev,#kosmos-random" \
|
||||||
HUBOT_IRC_NICK="hal7000" \
|
HUBOT_IRC_NICK="hal7000" \
|
||||||
HUBOT_IRC_UNFLOOD="300" \
|
HUBOT_IRC_UNFLOOD="300" \
|
||||||
HUBOT_RSS_PRINTSUMMARY="false" \
|
HUBOT_RSS_PRINTSUMMARY="false" \
|
||||||
HUBOT_RSS_PRINTERROR="false" \
|
|
||||||
HUBOT_RSS_IRCCOLORS="true" \
|
HUBOT_RSS_IRCCOLORS="true" \
|
||||||
HUBOT_RSS_HEADER="Update:" \
|
HUBOT_RSS_HEADER="Update:" \
|
||||||
HUBOT_AUTH_ADMIN="slvrbckt,raucao" \
|
HUBOT_AUTH_ADMIN="bkero,derbumi,galfert,gregkare,slvrbckt,raucao" \
|
||||||
LOG_HTTP_PORT=7000 \
|
LOG_HTTP_PORT=7000 \
|
||||||
LOG_STEALTH="true" \
|
LOG_STEALTH="true" \
|
||||||
WEBHOOK_TOKEN="kosmosplusplus" \
|
WEBHOOK_TOKEN="kosmosplusplus" \
|
||||||
KREDITS_WEB_URL="http://localhost:4200" \
|
HUBOT_YUBIKEY_API_ID="change-me" \
|
||||||
KREDITS_WEBHOOK_TOKEN="123" \
|
KREDITS_WEBHOOK_TOKEN="123" \
|
||||||
KREDITS_ROOM="#kosmos-random" \
|
KREDITS_ROOM="#kosmos-dev" \
|
||||||
KREDITS_WALLET_PATH="wallet.json" \
|
# KREDITS_WALLET_PATH="wallet.json" \
|
||||||
|
KREDITS_WALLET_PATH="wallet-testnet.json" \
|
||||||
KREDITS_WALLET_PASSWORD="foo" \
|
KREDITS_WALLET_PASSWORD="foo" \
|
||||||
KREDITS_PROVIDER_URL="http://localhost:8545" \
|
KREDITS_CONTRACT_ADDRESS="0x1e77db134531f8e8f3d97428285d096b4b85e2c4" \
|
||||||
KREDITS_GITHUB_KEY="5f49f1d25902f053c61c" \
|
|
||||||
KREDITS_GITHUB_SECRET="cc695d692c33746c9c9b688d24a12b16f58f9e00" \
|
|
||||||
KREDITS_GITHUB_REPO_BLACKLIST="" \
|
|
||||||
KREDITS_MEDIAWIKI_URL="https://wiki.kosmos.org/" \
|
|
||||||
bin/hubot --name hal7000
|
bin/hubot --name hal7000
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
module.exports = function (robot) {
|
|
||||||
robot.router.get('/health/live', (req, res) => {
|
|
||||||
res.send('OK');
|
|
||||||
});
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user