Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4a8ea160a8 | |||
| 17543cb67b |
4
index.js
4
index.js
@@ -235,10 +235,10 @@ const Web3 = require('web3');
|
|||||||
res.send(`HALP, I\'m totally broke! Not a single wei in my pocket.`);
|
res.send(`HALP, I\'m totally broke! Not a single wei in my pocket.`);
|
||||||
}
|
}
|
||||||
else if (balance >= 1e+17) {
|
else if (balance >= 1e+17) {
|
||||||
res.send(`my wallet contains ${balance} wei`);
|
res.send(`my wallet contains ${web3.fromWei(balance, 'ether')} ETH`);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
res.send(`I\'m almost broke! Only have ${balance} wei left in my pocket. :(`);
|
res.send(`I\'m almost broke! Only have ${web3.fromWei(balance, 'ether')} ETH left in my pocket. :(`);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hubot-kredits",
|
"name": "hubot-kredits",
|
||||||
"version": "1.4.0",
|
"version": "1.4.1",
|
||||||
"description": "Kosmos Kredits functionality for chat bots",
|
"description": "Kosmos Kredits functionality for chat bots",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user