Compare commits

..

33 Commits

Author SHA1 Message Date
Râu Cao
1b4397bb15
3.1.0 2023-08-14 17:37:38 +02:00
Râu Cao
d717c01c33
Use local values for dev run script 2023-08-14 17:37:10 +02:00
Râu Cao
7cbc8905ff
Update hubot-kredits 2023-08-14 17:36:54 +02:00
Râu Cao
5d23ed9419
3.0.0 2022-11-02 19:12:21 +01:00
9265566ef9 Merge pull request 'Update hubot-kredits, default config' (#2) from chore/kredits_upgrade into master
Reviewed-on: #2
2022-11-02 18:02:15 +00:00
Râu Cao
25b5724319
Use new @kredits/hubot-kredits with @kredits/contracts 2022-11-02 18:55:57 +01:00
Râu Cao
62353529e8
Update hubot-kredits, default config
Also remove some obsolete hubot scripts
2022-10-31 13:20:56 +01:00
8956ea59d8
2.4.0 2021-04-09 13:53:17 +02:00
e02c3bb9b6 Merge pull request 'Add liveness check endpoint' (#1) from feature/health_check_endpoint into master
Reviewed-on: #1
2021-04-09 11:17:13 +00:00
564df1770a Merge branch 'master' into feature/health_check_endpoint 2021-04-09 11:16:40 +00:00
6076b5e60f
Update README 2021-04-09 10:22:53 +02:00
e29b67749f
Add liveness check endpoint
`GET /health/live` returns "200 OK"
2021-04-09 09:43:29 +02:00
ed2a3c91a8
Merge pull request #16 from 67P/bugfix/node_12_compatibility
Update our hubot-xmpp fork from upstream
2021-04-01 17:43:28 +02:00
Greg Karékinian
76c1ac0655 Update our hubot-xmpp fork from upstream
It fixes an issue that prevented it from running under Node 12:
https://github.com/xmppjs/hubot-xmpp/issues/127

Co-authored-by: Garret Alfert <alfert@wevelop.de>
2021-04-01 17:34:24 +02:00
Greg Karékinian
03dedbbae1 Bump the hubot-kredits commit hash
Includes https://github.com/67P/hubot-kredits/pull/67
2021-03-30 14:08:54 +02:00
0feed8abe0
Merge pull request #15 from 67P/feature/contributions_for_reviews
Deploy hubot-kredits from GitHub
2021-03-30 11:52:12 +02:00
Greg Karékinian
1a444465a8 Deploy hubot-kredits from GitHub
Creating contributions from PR reviews has been merged, but not
published to npm yet: https://github.com/67P/hubot-kredits/pull/66
2021-03-30 11:47:19 +02:00
62b63a5866
Merge pull request #14 from 67P/chore/update_dependencies
Update dependencies, remove hubot-rss-reader
2020-10-29 16:16:56 +01:00
bed00622b1
Update dependencies, remove hubot-rss-reader
Updates hubot-kredits for the MediaWiki changes, among others.

Unfortunately, I wasn't able to get hubot-rss-reader to npm-install
anymore.
2020-10-29 16:13:41 +01:00
ff38fbaf0f
Merge pull request #13 from 67P/chore/update-hubot-kredits
Update hubot-kredits package
2020-07-18 16:22:53 +02:00
fa9083c169 Update hubot-kredits package
This hopefully solves the transaction nonce issues and all contributions
can be created again.
2020-07-18 13:11:36 +02:00
31574f25eb
Merge pull request #10 from 67P/docs/readme
Update deployment/chef info in README
2020-05-25 16:42:57 +02:00
28df2547a2
Update deployment/chef info in README 2020-05-25 16:41:54 +02:00
cd0a9cad44
Merge pull request #9 from 67P/chore/update_deps
Update dependencies
2020-05-25 16:39:09 +02:00
89c73d06c0
npm audit fix 2020-05-25 16:38:47 +02:00
1aed0a38c5
Update dependencies
Especially hubot-kredits, for new Zoom features.
2020-05-25 16:37:25 +02:00
311df067db
2.3.1 2020-04-16 22:18:17 +02:00
603b58a308
Update hubot-kredits 2020-04-16 22:18:06 +02:00
e3162ef44f
2.3.0 2020-04-16 17:48:11 +02:00
5bfdd743d5
Update hubot-kredits
Has Zoom integration now
2020-04-16 17:47:25 +02:00
1d50beefeb
Merge pull request #7 from 67P/dependabot/npm_and_yarn/kind-of-6.0.3
Bump kind-of from 6.0.2 to 6.0.3
2020-03-31 20:39:33 -05:00
dependabot[bot]
a34b315e66
Bump kind-of from 6.0.2 to 6.0.3
Bumps [kind-of](https://github.com/jonschlinkert/kind-of) from 6.0.2 to 6.0.3.
- [Release notes](https://github.com/jonschlinkert/kind-of/releases)
- [Changelog](https://github.com/jonschlinkert/kind-of/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jonschlinkert/kind-of/compare/6.0.2...6.0.3)

Signed-off-by: dependabot[bot] <support@github.com>
2020-04-01 01:37:04 +00:00
9724639b4f
Remove release-drafter config 2019-09-01 17:10:16 +02:00
7 changed files with 7191 additions and 2615 deletions

View File

@ -1,4 +0,0 @@
template: |
## Changes
$CHANGES

View File

@ -1,4 +1,4 @@
# hal8000
## hal8000
hal8000 is a chat bot built on the [Hubot](https://hubot.github.com/)
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
with the commands.
## Deployment
### Deployment
hal8000 is deployed by running Chef Solo against `dev.kosmos.org` with the
cookbooks from our (private) [GitLab repo](https://gitlab.com/kosmos/chef).
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
### House Rules
[Contributor Code of Conduct](http://contributor-covenant.org/version/1/2/0/) (TL;DR: Be excellent to each other.)

View File

@ -1,16 +1,12 @@
[
"@kredits/hubot-kredits",
"hubot-auth",
"hubot-help",
"hubot-read-tweet",
"hubot-redis-brain",
"hubot-rules",
"hubot-shipit",
"hubot-plusplus",
"hubot-tell",
"hubot-seen",
"hubot-rss-reader",
"hubot-incoming-webhook",
"hubot-yubikey-invalidation",
"hubot-kredits",
"hubot-schedule"
]

9747
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{
"name": "hal8000",
"version": "2.2.1",
"version": "3.1.0",
"private": true,
"scripts": {
"start": "./run.sh",
@ -12,27 +12,23 @@
],
"description": "Heuristically programmed ALgorithmic computer",
"dependencies": {
"@kredits/hubot-kredits": "^4.1.0",
"cheerio": "0.22.0",
"coffee-script": "^1.9.2",
"hubot": "^3.3.2",
"hubot-auth": "^1.2.0",
"hubot-help": "^1.0.1",
"hubot-incoming-webhook": "^1.1.1",
"hubot-irc": "67P/hubot-irc#dev",
"hubot-kredits": "^3.4.1",
"hubot-plusplus": "github:67P/hubot-plusplus#feature/configurable_points_term",
"hubot-read-tweet": "0.0.2",
"hubot-irc": "github:67P/hubot-irc#dev",
"hubot-redis-brain": "1.0.0",
"hubot-rss-reader": "github:67P/hubot-rss-reader#e3252d63a908c065671c5416a0a4bffa323b27c6",
"hubot-rules": "^0.1.0",
"hubot-schedule": "^0.6.2",
"hubot-rules": "^1.0.0",
"hubot-schedule": "^0.7.0",
"hubot-scripts": "^2.5.16",
"hubot-seen": "github:67P/hubot-seen#fix_debug",
"hubot-shipit": "^0.2.0",
"hubot-tell": "^1.2.3",
"hubot-xmpp": "github:67P/hubot-xmpp#dev",
"hubot-yubikey-invalidation": "0.0.3",
"node-fetch": "^2.6.0",
"request": "^2.88.0"
"node-fetch": "^2.6.7",
"request": "^2.88.2"
}
}

16
run.sh
View File

@ -1,8 +1,8 @@
# npm link hubot-kredits
# npm link @kredits/hubot-kredits
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_NICK="hal7000" \
HUBOT_IRC_UNFLOOD="300" \
@ -10,20 +10,18 @@ HUBOT_RSS_PRINTSUMMARY="false" \
HUBOT_RSS_PRINTERROR="false" \
HUBOT_RSS_IRCCOLORS="true" \
HUBOT_RSS_HEADER="Update:" \
HUBOT_AUTH_ADMIN="bkero,derbumi,galfert,gregkare,slvrbckt,raucao" \
HUBOT_PLUSPLUS_POINTS_TERM='karma,karma' \
HUBOT_AUTH_ADMIN="slvrbckt,raucao" \
LOG_HTTP_PORT=7000 \
LOG_STEALTH="true" \
WEBHOOK_TOKEN="kosmosplusplus" \
HUBOT_YUBIKEY_API_ID="change-me" \
KREDITS_WEB_URL="http://localhost:4200" \
KREDITS_WEBHOOK_TOKEN="123" \
KREDITS_ROOM="#kosmos-random" \
KREDITS_WALLET_PATH="wallet.json" \
KREDITS_WALLET_PASSWORD="foo" \
KREDITS_PROVIDER_URL="http://localhost:7545" \
KREDITS_DAO_ADDRESS="" \
KREDITS_GITHUB_KEY="" \
KREDITS_GITHUB_SECRET="" \
KREDITS_PROVIDER_URL="http://localhost:8545" \
KREDITS_GITHUB_KEY="5f49f1d25902f053c61c" \
KREDITS_GITHUB_SECRET="cc695d692c33746c9c9b688d24a12b16f58f9e00" \
KREDITS_GITHUB_REPO_BLACKLIST="" \
KREDITS_MEDIAWIKI_URL="https://wiki.kosmos.org/" \
bin/hubot --name hal7000

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');
});
}