Compare commits

..

1 Commits

Author SHA1 Message Date
5a3c6c56bf
Update README 2021-04-09 10:23:35 +02:00
6 changed files with 2547 additions and 6696 deletions

View File

@ -1,30 +1,3 @@
## hal8000 ## [MOVED] hal8000
hal8000 is a chat bot built on the [Hubot](https://hubot.github.com/) This repo has been moved to our Gitea instance: https://gitea.kosmos.org/kosmos/hal8000
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.)

View File

@ -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-incoming-webhook", "hubot-incoming-webhook",
"hubot-yubikey-invalidation",
"hubot-kredits",
"hubot-schedule" "hubot-schedule"
] ]

9177
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{ {
"name": "hal8000", "name": "hal8000",
"version": "3.1.0", "version": "2.3.1",
"private": true, "private": true,
"scripts": { "scripts": {
"start": "./run.sh", "start": "./run.sh",
@ -12,7 +12,6 @@
], ],
"description": "Heuristically programmed ALgorithmic computer", "description": "Heuristically programmed ALgorithmic computer",
"dependencies": { "dependencies": {
"@kredits/hubot-kredits": "^4.1.0",
"cheerio": "0.22.0", "cheerio": "0.22.0",
"coffee-script": "^1.9.2", "coffee-script": "^1.9.2",
"hubot": "^3.3.2", "hubot": "^3.3.2",
@ -20,6 +19,9 @@
"hubot-help": "^1.0.1", "hubot-help": "^1.0.1",
"hubot-incoming-webhook": "^1.1.1", "hubot-incoming-webhook": "^1.1.1",
"hubot-irc": "github:67P/hubot-irc#dev", "hubot-irc": "github:67P/hubot-irc#dev",
"hubot-kredits": "github:67P/hubot-kredits#7db7a83a342e1df378250f02381b783752cdd930",
"hubot-plusplus": "github:67P/hubot-plusplus#feature/configurable_points_term",
"hubot-read-tweet": "0.0.2",
"hubot-redis-brain": "1.0.0", "hubot-redis-brain": "1.0.0",
"hubot-rules": "^1.0.0", "hubot-rules": "^1.0.0",
"hubot-schedule": "^0.7.0", "hubot-schedule": "^0.7.0",
@ -28,7 +30,8 @@
"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-xmpp": "github:67P/hubot-xmpp#dev",
"node-fetch": "^2.6.7", "hubot-yubikey-invalidation": "0.0.3",
"node-fetch": "^2.6.0",
"request": "^2.88.2" "request": "^2.88.2"
} }
} }

16
run.sh
View File

@ -1,8 +1,8 @@
# npm link @kredits/hubot-kredits # npm link hubot-kredits
PORT=8888 \ PORT=8888 \
HUBOT_LOG_LEVEL="debug" \ HUBOT_LOG_LEVEL="debug" \
HUBOT_IRC_SERVER="irc.libera.chat" \ HUBOT_IRC_SERVER="irc.freenode.net" \
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" \
@ -10,18 +10,20 @@ HUBOT_RSS_PRINTSUMMARY="false" \
HUBOT_RSS_PRINTERROR="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" \
HUBOT_PLUSPLUS_POINTS_TERM='karma,karma' \
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-random" \
KREDITS_WALLET_PATH="wallet.json" \ KREDITS_WALLET_PATH="wallet.json" \
KREDITS_WALLET_PASSWORD="foo" \ KREDITS_WALLET_PASSWORD="foo" \
KREDITS_PROVIDER_URL="http://localhost:8545" \ KREDITS_PROVIDER_URL="http://localhost:7545" \
KREDITS_GITHUB_KEY="5f49f1d25902f053c61c" \ KREDITS_DAO_ADDRESS="" \
KREDITS_GITHUB_SECRET="cc695d692c33746c9c9b688d24a12b16f58f9e00" \ 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

View File

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