Merge pull request 'Modernize to hubot 14 (ESM)' (#3) from chore/hubot-14 into master

Reviewed-on: #3
This commit was merged in pull request #3.
This commit is contained in:
raucao committed 2026-10-28 10:36:44 +00:00
commit b9607fc9df
6 files changed
+2461 -5835

No files matched your search

-36
View File
@@ -1,36 +0,0 @@
{
"predef": [
"global",
"Promise",
"require",
"process",
"module",
"exports",
"Buffer"
],
"browser": false,
"boss": true,
"curly": true,
"debug": false,
"devel": true,
"eqeqeq": true,
"evil": true,
"forin": false,
"immed": false,
"laxbreak": false,
"newcap": true,
"noarg": true,
"noempty": false,
"nonew": false,
"nomen": false,
"onevar": false,
"plusplus": false,
"regexp": false,
"undef": true,
"sub": true,
"strict": false,
"white": false,
"eqnull": true,
"esnext": true,
"unused": true
}
+2 -7
View File
@@ -1,12 +1,7 @@
[
"@kredits/hubot-kredits",
"hubot-auth",
"hubot-help",
"hubot-redis-brain",
"hubot-rules",
"hubot-shipit",
"hubot-tell",
"hubot-seen",
"hubot-incoming-webhook",
"hubot-schedule"
"hubot-redis-brain",
"hubot-rules"
]
+2437 -5764
View File
File diff suppressed because it is too large. Load diff
+8 -18
View File
@@ -2,6 +2,7 @@
"name": "hal8000",
"version": "3.1.0",
"private": true,
"type": "module",
"scripts": {
"start": "./run.sh",
"ngrok": "ngrok http -region=eu -hostname=hubot-dev.kosmos.org localhost:8888"
@@ -12,23 +13,12 @@
],
"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": "github:67P/hubot-irc#dev",
"hubot-redis-brain": "1.0.0",
"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",
"node-fetch": "^2.6.7",
"request": "^2.88.2"
"@kredits/hubot-kredits": "git+https://gitea.kosmos.org/kredits/hubot-kredits.git#master",
"hubot": "14.1.0",
"hubot-help": "^2.1.5",
"hubot-incoming-webhook": "^2.0.0",
"hubot-redis-brain": "3.0.1",
"hubot-rules": "^2.1.1",
"hubot-xmpp": "git+https://gitea.kosmos.org/kosmos/hubot-xmpp.git#master"
}
}
+5 -7
View File
@@ -2,21 +2,19 @@
PORT=8888 \
HUBOT_LOG_LEVEL="debug" \
HUBOT_IRC_SERVER="irc.libera.chat" \
HUBOT_IRC_ROOMS="#kosmos-dev,#kosmos-random" \
HUBOT_IRC_NICK="hal7000" \
HUBOT_IRC_UNFLOOD="300" \
HUBOT_XMPP_USERNAME="hal8000@kosmos.org/hubot" \
HUBOT_XMPP_PASSWORD="change-me" \
HUBOT_XMPP_ROOMS="kosmos-dev@kosmos.chat,kosmos-random@kosmos.chat" \
HUBOT_RSS_PRINTSUMMARY="false" \
HUBOT_RSS_PRINTERROR="false" \
HUBOT_RSS_IRCCOLORS="true" \
HUBOT_RSS_HEADER="Update:" \
HUBOT_AUTH_ADMIN="slvrbckt,raucao" \
LOG_HTTP_PORT=7000 \
LOG_STEALTH="true" \
WEBHOOK_TOKEN="kosmosplusplus" \
KREDITS_WEB_URL="http://localhost:4200" \
KREDITS_WEBHOOK_TOKEN="123" \
KREDITS_ROOM="#kosmos-random" \
KREDITS_ROOM="kosmos-random@kosmos.chat" \
KREDITS_WALLET_PATH="wallet.json" \
KREDITS_WALLET_PASSWORD="foo" \
KREDITS_PROVIDER_URL="http://localhost:8545" \
@@ -24,4 +22,4 @@ 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 -a hubot-xmpp --name hal8000
+9 -3
View File
@@ -1,5 +1,11 @@
module.exports = function (robot) {
// Description:
// Liveness/health endpoint for the HTTP server.
//
// Commands:
// None
export default function (robot) {
robot.router.get('/health/live', (req, res) => {
res.send('OK');
});
res.send('OK')
})
}