minor fixes

add deposit command in addition to address
This commit is contained in:
Thomas Zarebczan 2018-04-27 01:39:12 -04:00
parent 96d02fe5a8
commit 65e2c4fc77

View file

@ -184,7 +184,7 @@ client.stream('statuses/filter', {track: settings.twitter.twitterkeyword}, funct
if (balance >= amount) {
coin.send('move', settings.rpc.prefix + from.toLowerCase(), settings.rpc.prefix + to.toLowerCase(), amount, function (err, reply) {
locks[from.toLowerCase()] = null;
if (err || reply) {
if (err || !reply) {
winston.error('Error in tip command', err);
replytweet(from, replyid, settings.messages.error.expand({name: from}));
return;
@ -208,6 +208,7 @@ client.stream('statuses/filter', {track: settings.twitter.twitterkeyword}, funct
}
});
break;
case 'deposit':
case 'address':
console.log('adress');
var user = from.toLowerCase();