Jump to content
McKay Development

Can't get SteamID


gubi

Recommended Posts

aloha,

 

i got this error:

Error: The specified profile could not be found.

with this code:

var SteamUser = require('steam-user');
var SteamCommunity = require('steamcommunity');
var SteamTotp = require('steam-totp');
var SteamID = require('steamid');
var config = require('./config.js');
var client = new SteamUser();
var community = new SteamCommunity();
var fs = require("fs"),
    readlineSync = require("readline-sync"),
    steamID = readlineSync.question("SteamID: ")
    //text = readlineSync.question("Text: ")

var accounts = [];

var arrayAccountsTxt = fs.readFileSync("accounts.txt").toString().split("\n");
for (i in arrayAccountsTxt) {
    var accInfo = arrayAccountsTxt[i].toString().trim().split(":");
    var username = accInfo[0];
    var password = accInfo[1];
    accounts[i] = [];
    accounts[i].push({
    });
}

//arrayAccountsTxt.forEach(logOnOptions);

var logOnOptions = {
	"accountName": username,
	"password": password
};
client.logOn(logOnOptions);
client.on('loggedOn', function() {
console.log("[gubiCBot] Uruchomiono poprawnie.");
        
        ///client.chatMessage(steamID, 'elo');
        community.getSteamUser(steamID, function(err, user) { 
       if(config.acceptInvite) client.addFriend(steamID);
        	if(err) return console.log("error: "+err);

        	user.comment(text, function(error){
	        if (error) return console.log('err: '+steamID);
	        	console.log("done.");
                                    
                                                                
        });    
    });
});

can u help me guys, i started with js few days ago and i don't know how to fix this..
 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...