Modernize to hubot 14 (ESM)
- ESM ("type": "module"); hubot 14.1.0
- deps: hubot-xmpp (kosmos/hubot-xmpp@master), hubot-help ^2.1.5, hubot-rules
^2.1.1, hubot-redis-brain 3.0.1, hubot-incoming-webhook ^2.0.0,
@kredits/hubot-kredits (git master)
- drop hubot-irc, coffee-script, request, hubot-auth, hubot-scripts,
hubot-shipit, hubot-tell, hubot-seen, hubot-schedule, cheerio, node-fetch
- external-scripts.json: hubot-help, hubot-redis-brain, hubot-rules,
hubot-incoming-webhook, @kredits/hubot-kredits
- scripts/health.js -> ESM; run.sh -> -a hubot-xmpp
- drop stale .jshintrc
This commit is contained in:
6 files changed
+2461
-5835
No files matched your search
@@ -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
|
||||
}
|
||||
@@ -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"
|
||||
]
|
||||
Generated
+2437
-5764
File diff suppressed because it is too large.
Load diff
+8
-18
@@ -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"
|
||||
}
|
||||
}
|
||||
@@ -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
@@ -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')
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user