Code Monkey home page Code Monkey logo

node-steam-parentbot's People

Contributors

adhskid avatar andrewda avatar kjsmita6 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

node-steam-parentbot's Issues

What is an identity secret?

identitySecret: 'XXXXXXXXX/XXXXXXXXXXXXXXX/X=', //identity secret, needed to automatically confirm trade offers, must be used with confirmationInterval

I'm getting unexpected disconnection all the time

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?

Error after Logged into Steam web

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)

Limit numbers of cSteamGroup.getGroupMembers() returns

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.

Array of bots and handlers

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 loggin in

Error logging in: TypeError: Cannot read property 'send' of undefined

Any idea?

How to get .2fa_info files.

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 steam is not working

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

Recent issue with NodeJS reinstall

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.

Check Sent Offer

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?

Handling Offers

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.

Socked

How to currectly do this?
1111

Syntax errors

I'm getting the following error when launching example.js.
codenotworking
andthistoo

smsCode

How to provide sms code recived by sms to get bot worked? there is guardCode etc but there is no sms code option.

Cannot Automatically Accept Trade Offers

@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');

Wont connect to socket

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

Add license and link

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.

Forgot to instantiate Steam Community

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...

steamCommunity instance is 'community'?

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)

Error: This account is not authorized to use this feature.

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.

}

  • Nothing changes when I try to pass apikey and/or twoFactorCode manually
  • Node version: v4.1.1

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

Offer sending failure

Hi there, what is 15 code on my error?

There was an error sending your trade offer. Please try again later. (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.