diff --git a/package-lock.json b/package-lock.json index a7e40e26..63775cd3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "hubot-plusplus-expanded", - "version": "2.2.2", + "version": "2.2.3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index e3061355..1a260b59 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hubot-plusplus-expanded", - "version": "2.2.2", + "version": "2.2.3", "description": "A hubot script for micro praise", "main": "index.js", "engines": { diff --git a/src/wallet.js b/src/wallet.js index f3cd7d56..f314ca77 100644 --- a/src/wallet.js +++ b/src/wallet.js @@ -1,3 +1,4 @@ +const _ = require('lodash'); const Conversation = require('hubot-conversation'); const tokenBuddy = require('token-buddy'); const helpers = require('./helpers'); @@ -39,9 +40,9 @@ async function botWalletCount(msg, scoreKeeper) { try { gas = await tokenBuddy.getBalance(botWallet.publicWalletAddress); } catch (e) { - msg.send(`An error occurred getting ${this.robot.name}'s gas ammount`); + msg.send(`An error occurred getting ${msg.robot.name}'s gas ammount`); } - msg.robot.logger.debug(`Get the bot wallet by user ${msg.message.user.name}, ${botWallet}`); + msg.robot.logger.debug(`Get the bot wallet by user ${msg.message.user.name}, ${_.pick(JSON.stringify(botWallet), ['publicWalletAddress', 'name', 'token'])}`); const message = { attachments: [{