kjsmita6 / node-steam-parentbot Goto Github PK
View Code? Open in Web Editor NEWA module that provides a simple base class for a Steam bot that can be easliy overwritten and customized.
License: MIT License
A module that provides a simple base class for a Steam bot that can be easliy overwritten and customized.
License: MIT License
identitySecret: 'XXXXXXXXX/XXXXXXXXXXXXXXX/X=', //identity secret, needed to automatically confirm trade offers, must be used with confirmationInterval
Hey,
I have no idea why, but my bot is getting disconnected all the time and as the account is using separate mobile authentication, not embedded into steam-parent-bot, I cannot make it automatically restart.
help?
Hi there, witch function take care of ofers sended from bot :)
How to accept etc
Question is clear: I have a stable working bot. Should I upgrade to ES6 version of parentbot?
Hey, can someone tell me how i can fix this error. Thanks for incomming help.
2016-02-01T23:11:52.019Z - error: [BOTNAME] Error: This account is not authorized to use this feature. at SteamCommunity._checkCommunityError (/root/bots/node_modules/steamcommunity/index.js:344:12) at Request._callback (/root/bots/node_modules/steamcommunity/components/webapi.js:54:11) at Request.self.callback (/root/bots/node_modules/request/request.js:199:22) at emitTwo (events.js:100:13) at Request.emit (events.js:185:7) at Request.<anonymous> (/root/bots/node_modules/request/request.js:1036:10) at emitOne (events.js:95:20) at Request.emit (events.js:182:7) at Gunzip.<anonymous> (/root/bots/node_modules/request/request.js:963:12) at emitNone (events.js:85:20)
Ehhh hello, I just simply wanted to ask, if you know a method to limit the returns of the given function, wich crawls groups to get their members? Since I once crawled a big group, and it kept going on forever, until nodeJS crashed, I want to grab only the first 100 members, if possible, and then stop the crawling, and go on with the code.
Why my bot is accepting offers with holdl duration...
Help please.
Hello, I created array of bots.
I setup handlers like in example, so basically ChildBot.prototype.... But how can I know on which bot happened that action.
So if someone write to chat to one of my bots, I want only from that one bot to respond.
Is that possible?
Error logging in: TypeError: Cannot read property 'send' of undefined
Any idea?
Bot.web.disconnect()? idk
I need to get the identity secret to auto accept trades which is apparently located in the [username].2fa_info file. For some reason I don't have this file. I have already enabled 2fa, and have written working code for auto accepting trade offers. At the moment only sentry and log files are created not the .2fa_info files which I need in order to find the identity secret.
This is the code of my index file where I create the childbot: https://gist.github.com/CodeLuca/44de80dfc35619357b26
I am using the mobile authenticator on iOS if that helps.
This issue is an extension of #15
If @andrewda, @dragonbanshee or @iNFAM0US could you try help me out? Thanks so much for the help already :)
Thanks,
Luca
Why is not working ?
var ParentBot = require('steam-parentbot'); //change to 'steam-parentbot' if not running from examples directory var Steam = ParentBot.Steam; //instance of the Steam object
Steam.webLogOn(function(newCookie) { Bot.offers.setup({ sessionID: globalSessionID, webCookie: newCookie }, function(err) { if (err) { } }); });
TypeError: Steam.webLogOn is not a function
Uhm, I had to install NodeJS on a new server, but now when I run the bot(with the new ES6 update?) I get following error..
bots@box:~$ nodejs bots.js
/home/bots/bots.js:6
class ChildBot extends ParentBot {
^^^^^
SyntaxError: Unexpected reserved word
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:902:3
And this are my versions of Node & NPM
bots@box:~$ nodejs -v
v0.10.25
bots@box:~$ npm -v
1.3.10
I hope you really can help me here, since apt-get install node wont work. If required, I'm using Ubuntu 14.04.
This is not actually an issue but I couldn't find anywhere to ask this.
I can check received offers and handle them and send offers with the bot but I don't know how to check my sent offers if they are accepted or not. How can I do it?
Hi,
If two or more trades were sent to the bot within 1-2 seconds of eachother it would handle both of them twice, duplicating them basically. Is there a way of not letting this happen? A queue perhaps? If so, how would I go on about doing so?
Yoran.
How to get data on weblogon?
How to generate Mobile Auth Code when bot is running ?
How to provide sms code recived by sms to get bot worked? there is guardCode etc but there is no sms code option.
@andrewda,
I need some help, I cannot seem to get the auto confirming of trade offers working, here is my code when activating the bot with a couple numbers changed from the identity_secret:
// Initialise App.ChildBot
App.Bot = new App.ChildBot(App.config.username, App.config.password, {
apikey: App.config.apiKey,
twoFactorCode: App.config.twoFactorCode,
identitySecret: 'u8OxVY+GJ32IlX9mlmcrkW/d4B4=',
confirmationInterval: 10000
});
debug('Childbot Initialised');
When trying to connect to my bot, it always just spams my terminal with
2016-03-14T20:35:36.744Z - warn: [tomhillepille] Sentry defined in options doesn't exists and will be created on successful login
2016-03-14T20:35:36.752Z - silly: [tomhillepille] connecting to 146.66.152.13:27018
2016-03-14T20:35:36.755Z - debug: [tomhillepille] Connecting to Steam...
2016-03-14T20:35:37.756Z - silly: [tomhillepille] socket timed out
2016-03-14T20:35:37.757Z - silly: [tomhillepille] socket closed
2016-03-14T20:35:37.757Z - silly: [tomhillepille] connecting to 146.66.152.12:27018
2016-03-14T20:35:38.760Z - silly: [tomhillepille] socket timed out
2016-03-14T20:35:38.761Z - silly: [tomhillepille] socket closed
2016-03-14T20:35:38.761Z - silly: [tomhillepille] connecting to 72.165.61.185:27017
2016-03-14T20:35:39.762Z - silly: [tomhillepille] socket timed out
2016-03-14T20:35:39.765Z - silly: [tomhillepille] socket closed
2016-03-14T20:35:39.765Z - silly: [tomhillepille] connecting to 72.165.61.188:27017
I forgot to do this earlier. When home from work, add license (MIT) to package.json and repository, and add the link to GitHub in package.json.
I won't create a whole new PR for this, but I made a typo and forgot to instantiate SteamCommunity. Just add this to the code and everything should work fine.
var community = new SteamCommunity();
Can't believe I didn't catch that...
Is parentbot including https://github.com/DoctorMcKay/node-steam-tradeoffer-manager ?
Hello there, I tried kicking members from the group using the steamCommunity instance, but everytime I use 'Bot.steamCommunity' it fails, and when I use(viewed the source) 'Bot.community' it only gives the error I wouldn't have permissions, even though I can kick manually..
Bot.steamCommunity.kickGroupMember('', new SteamID('[U:1:]'), function (err) {
console.log(err);
});
Bot.community.kickGroupMember('', new SteamID('[U:1:]'), function (err) {
console.log(err);
});
Error:
Bot.steamCommunity.kickGroupMember('', new SteamID('[U:1:]'), function (err) {
^
TypeError: Cannot read property 'kickGroupMember' of undefined
-----
Error: You do not have the required permissions to access that group feature.
at SteamCommunity._checkCommunityError (/home/bots/node_modules/steam-parentbot/node_modules/steamcommunity/components/http.js:110:9)
at Request._callback (/home/bots/node_modules/steam-parentbot/node_modules/steamcommunity/components/http.js:51:88)
at Request.self.callback (/home/bots/node_modules/steam-parentbot/node_modules/steamcommunity/node_modules/request/request.js:200:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
at Request.<anonymous> (/home/bots/node_modules/steam-parentbot/node_modules/steamcommunity/node_modules/request/request.js:1067:10)
at emitOne (events.js:101:20)
at Request.emit (events.js:188:7)
at Gunzip.<anonymous> (/home/bots/node_modules/steam-parentbot/node_modules/steamcommunity/node_modules/request/request.js:988:12)
at emitNone (events.js:91:20)
Hello.
When I try to use your example code, I'm getting this output:
2016-01-31T14:09:24.725Z - info: [**] Using sentry file **.sentry
2016-01-31T14:09:24.733Z - silly: [**] connecting to 72.165.61.174:27017
2016-01-31T14:09:24.738Z - debug: [**] Connecting to Steam...
2016-01-31T14:09:24.899Z - silly: [**] connected
2016-01-31T14:09:25.065Z - silly: [**] encrypt request
2016-01-31T14:09:25.256Z - verbose: [**] Connected to Steam, logging in...
2016-01-31T14:09:25.257Z - debug: [**] Logging in...
2016-01-31T14:09:25.643Z - info: [**] Logged into Steam!
2016-01-31T14:09:25.970Z - info: [**] Logged into Steam web
2016-01-31T14:09:26.802Z - error: [**] Error: This account is not authorized to use this feature.
at SteamCommunity._checkCommunityError (/root/down/**/node_modules/steamcommunity/index.js:344:12)
at Request._callback (/root/down/**/node_modules/steamcommunity/components/webapi.js:54:11)
at Request.self.callback (/root/down/**/node_modules/steamcommunity/node_modules/request/request.js:199:22)
at emitTwo (events.js:87:13)
at Request.emit (events.js:172:7)
at Request.<anonymous> (/root/down/**/node_modules/steamcommunity/node_modules/request/request.js:1036:10)
at emitOne (events.js:82:20)
at Request.emit (events.js:169:7)
at Gunzip.<anonymous> (/root/down/**/node_modules/steamcommunity/node_modules/request/request.js:963:12)
at emitNone (events.js:72:20)
To be more clear, this is the code that I'm using to test/recreate
var ChildBot = function () { ChildBot.super_.apply(this, arguments); }
require('util').inherits(ChildBot, require('steam-parentbot'));
var Bot1 = new ChildBot('**', 'p@$$wd!', {
sharedSecret: 's€cR3T/sT34m'
}).connect();
Notes
Sorry!
An error was encountered while processing your request:This account is not authorized to use this feature.
}
Why I'm getting this error? I'm just trying to connect to my account. Nothing else. I'm not trying to buy/trade items, stay online on chat etc..
UPDATE
I'm also having another error when I pass richPresenceID.I think both errors are related
/path/**/node_modules/steam-parentbot/parentbot.js:37
this.steamRichPresence = (this.options.richPresenceID ? new Steam.steamRichPresence(this.steamClient, parseInt(this.options.richPresenceID)) : undefined);
^
TypeError: Steam.steamRichPresence is not a function
at options.steamClient.on.steamClient.on.steamUser.on.steamFriends.on (/path/**/node_modules/steam-parentbot/parentbot.js:37:61)
at new ChildBot (/path/**/bot.js:1:108)
at Object.<anonymous> (/path/**/bot.js:4:12)
at Module._compile (module.js:434:26)
at Object.Module._extensions..js (module.js:452:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:475:10)
at startup (node.js:117:18)
at node.js:951:3
Hi there, what is 15 code on my error?
There was an error sending your trade offer. Please try again later. (15)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.