Skip to content

Commit

Permalink
Bug fix in object property of wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
O-Mutt committed Jun 4, 2021
1 parent 62e137e commit d83a546
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
5 changes: 3 additions & 2 deletions src/wallet.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const _ = require('lodash');
const Conversation = require('hubot-conversation');
const tokenBuddy = require('token-buddy');
const helpers = require('./helpers');
Expand Down Expand Up @@ -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: [{
Expand Down

0 comments on commit d83a546

Please sign in to comment.