When working with your library there was a difficulty... How can i promise example here:
botInfo = {};
client.logOn(logOnOptions);
client.on('wallet', function(hasWallet, currency, balance) {
botInfo.balance = balance;
});
client.on('emailInfo', function(address, validated) {
botInfo.emailAddress = address;
botInfo.emailValidated = validated;
});
console.log(botInfo); // i want to log data after fill info
no one promise don't work....