diff --git a/.gitignore b/.gitignore index 3b8f584..be5df9d 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ node_modules .DS_Store* .hubot_history /tmp +wallet.json diff --git a/package.json b/package.json index 168fedf..af581bc 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "private": true, "scripts": { "start": "./run.sh", - "ngrok": "ngrok http -region=ap -hostname=hubot-dev.kosmos.org localhost:8080" + "ngrok": "ngrok http -region=ap -hostname=hubot-dev.kosmos.org localhost:8888" }, "authors": [ "Sebastian Kippe ", @@ -19,6 +19,7 @@ "hubot-help": "^0.1.1", "hubot-incoming-webhook": "^1.0.1", "hubot-irc": "^0.2.9", + "hubot-kredits": "^1.3.0", "hubot-plusplus": "^1.1.5", "hubot-read-tweet": "0.0.2", "hubot-redis-brain": "0.0.2", @@ -29,6 +30,8 @@ "hubot-shipit": "^0.2.0", "hubot-tell": "^1.2.3", "hubot-yubikey-invalidation": "0.0.3", + "kredits-contracts": "^2.0.0", + "node-fetch": "^1.6.3", "request": "2.30.0" }, "engines": { diff --git a/run.sh b/run.sh index c14829e..60b81b3 100755 --- a/run.sh +++ b/run.sh @@ -2,6 +2,7 @@ # rm -rf node_modules/hubot-openassets # npm install +PORT=8888 \ HUBOT_IRC_SERVER="irc.freenode.net" \ HUBOT_IRC_ROOMS="#kosmos-dev,#kosmos-random" \ HUBOT_IRC_NICK="hal7000" \ @@ -15,4 +16,9 @@ LOG_STEALTH="true" \ WEBHOOK_TOKEN="kosmosplusplus" \ HUBOT_YUBIKEY_API_ID="change-me" \ KREDITS_WEBHOOK_TOKEN="123" \ +KREDITS_ROOM="#kosmos-dev" \ +# KREDITS_WALLET_PATH="wallet.json" \ +KREDITS_WALLET_PATH="wallet-testnet.json" \ +KREDITS_WALLET_PASSWORD="foo" \ +KREDITS_CONTRACT_ADDRESS="0x1e77db134531f8e8f3d97428285d096b4b85e2c4" \ bin/hubot --name hal7000