gubi Posted July 26, 2017 Report Posted July 26, 2017 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.. Quote
Recommended Posts
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.