Git Product home page Git Product logo

node-steam-trash-bot's Introduction

node-steam-trash-bot

Deprecation note

This is no longer maintained and probably doesn't work anymore due to Steam's updated fraud protection methods.

Original readme

This is a Steam bot that will automatically accept friend requests, and will take any trash out of other peoples inventory, or give anything from it's own inventory. To send trash to it, sent a trade request and put anything up for trade, the bot will accept anything. To get anything out of its inventory, start a trade request and paste a link to the item. The bot should hopefully be up and running here. All trade offers are also automatically accepted. This code is a bit of spaghetti but it was something I just wanted to get working and it gets the job done. If you want to get your own copy running you'll need a file called secrets.js that contains the following:

exports.secrets = {
	username: 'username',
	password: 'password',
	guardCode: 'code from email after unsuccessful login attempt',
	profileId: 'ID part of the profile URL e.g. trashbot for http://steamcommunity.com/id/trashbot/inventory/',
	ownerId: 'numerical steam ID of the person who can control the bot'
	blacklist: ['steam ID of user to block', 'another steam ID to block'],
	whitelist: ['steam ID of user to keep as a friend', 'another steam ID of user to keep as a friend'],
	hmacSecret: 'random string used to encode usernames during export',
	environment: 'windows or linux, used to control how to spawn the CasperJS trade offer accepting process',
	mongoUpdaterPort: 3001, // Port to use for the mongo stat update server
	mongoUri: 'mongodb://u:p@address:port/database' // Mongo URI to use when storing stats
};

The bot will need to have Steam Guard enabled for 15 days before it will be able to respond to trade requests, and it may also need to own a game. Also to accept "offline" trade offers, PhantomJS and CasperJS must be installed and set up. The bot will automatically remove newly added friends after a while unless that user is the owner or on the whitelist.

Run the mongo-updater.js server to store historical trade details in MongoDB, if this isn't running you should get rid of the code that calls the server so there is no time wasted while waiting for the requests to fail.

First time setup:

  • Create an account and turn Steam Guard on
  • Set all config and leave guardCode set to null
  • Try to run bot.js, you'll get a login error and a guard code will be emailed to you
  • Set guardCode to the code that's sent you and run bot.js again
  • Try to trade with the bot, make both a trade offer and a trade request
  • These will fail but will start the 15 day countdown, so everything should start working 15 days later

node-steam-trash-bot's People

Contributors

bonnici 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  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-trash-bot's Issues

Unexpected identifier

C:\Users\Luke\Desktop\SteamTrashBot\secrets.js:7
blacklist: ['00000000000000000','00000000000000000'],
^^^^^^^^^
SyntaxError: Unexpected identifier
at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object. (C:\Users\Luke\Desktop\SteamTrashBot\bot.js:13:15)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)

TypeError: First argument needs to be a number, array or string.

hello,
Try to run node accept-trade-offers.js,
get this error message:

buffer.js:188
throw new TypeError('First argument needs to be a number, ' +
^
TypeError: First argument needs to be a number, array or string.
at new Buffer (buffer.js:188:15)
at Object.fs.read (fs.js:440:14)
at Object. (/path/to/site/accept-trade-offers.js:9:20)
at Module._compile (module.js:456:26)
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

can you added detail instruction how run this bot for offline offers? Thx.

Complete noob, can't seem to make it work

So, apparently i installed Node.Js.
When i try to use npm install i get:
C:\Users\KGB\Downloads\node-steam-trash-bot-master\node-steam-trash-bot-master>n
pm install
npm WARN package.json [email protected] No repository field.
npm WARN git config --get remote.origin.url returned wrong result (git://githu
b.com/seishun/node-steam-trade.git) undefined
npm WARN git config --get remote.origin.url returned wrong result (git://githu
b.com/seishun/node-steam-trade.git) undefined
npm ERR! git clone git://github.com/seishun/node-steam-trade.git undefined
npm ERR! git clone git://github.com/seishun/node-steam-trade.git undefined
npm ERR! not found: git
npm ERR!
npm ERR! Failed using git.
npm ERR! This is most likely not a problem with npm itself.
npm ERR! Please check if you have git installed and in your PATH.

npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\Program Files (x86)\nodejs\node.exe" "C:\Program File
s (x86)\nodejs\node_modules\npm\bin\npm-cli.js" "install"
npm ERR! cwd C:\Users\KGB\Downloads\node-steam-trash-bot-master\node-steam-trash
-bot-master
npm ERR! node -v v0.10.36
npm ERR! npm -v 1.4.28
npm ERR! code ENOGIT
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\KGB\Downloads\node-steam-trash-bot-master\node-steam-trash
-bot-master\npm-debug.log
npm ERR! not ok code 0

I tried npm install git, i get:
npm WARN package.json [email protected] No repository field.
[email protected] node_modules\git
└── [email protected]

And then i get the same error as above when i am trying to just use npm install.

I did programming around 8 years ago, but not much, and i am completely lost. I'd appreciate some help.

Windows Support

I feel that there should be some windows support for this project as it's one of the best!, it takes a lot to get the actually files up an running when I first start I thought, "Yeah install a few programs and it will work simples", well I was wrong and I've spent 2 weeks getting it to work on windows, Now I wont be offering my support on how I got it running because I don't have a clue other than following the issues from all the other projects that this requires - SteamKit2, Node-Gype, Ursa, Steam, C++ 2010 Express, and many more.

it takes way to long to get an amazing project to work on windows, on linux you're looking at 30-35minutes worth of time and that mostly spent setting up the files you require, but their should be more support in this than what is offered.

steam has concurrent limit when one andorid device does secondConfirmation?

hello,should this question be here? if not just delete it. when i use async method to send 50 tradeoffers at the same time,20 tradeoffers make it(STEAM's limit is 5 tradeoffers with the same partner),but when i do androidSecondConfirm using async method,just 1 or 2 secondConfirms make it,the others return "{"success":false}" from steamcommunity.com.
this is my webRequestUrl:
string allowp = SteamGuardAccount.GenerateConfirmationQueryParams("allow");
string allowUrl = $"https://steamcommunity.com/mobileconf/ajaxop?op=allow&{allowp}&cid={data_confid}&ck={data_key}";
does steam have concurrent limit when one andorid device does secondConfirmation? if so,I have to control the concurrent in my code? appropriate for any reply

Steam market fail authorization

Hello, accept-trade-offers.js works fine few last months, but now:

2014-09-25T03:30:42.361Z - info: offerCmd stdout: [debug] [phantom] Navigation requested: url=https://steamcommunity.com/market/eligibili
tycheck/?goto=/market/, type=Other, willNavigate=true, isMainFrame=true

2014-09-25T03:30:42.947Z - info: offerCmd stdout: [debug] [phantom] Navigation requested: url=http://steamcommunity.com/market/, type=Oth
er, willNavigate=true, isMainFrame=true

2014-09-25T03:30:43.291Z - info: offerCmd stdout: [debug] [phantom] Navigation requested: url=https://steamcommunity.com/market/eligibili
tycheck/?goto=/market/, type=Other, willNavigate=true, isMainFrame=true

2014-09-25T03:30:43.867Z - info: offerCmd stdout: [debug] [phantom] Navigation requested: url=http://steamcommunity.com/market/, type=Oth
er, willNavigate=true, isMainFrame=true

2014-09-25T03:30:44.206Z - info: offerCmd stdout: [debug] [phantom] Navigation requested: url=https://steamcommunity.com/market/eligibili
tycheck/?goto=/market/, type=Other, willNavigate=true, isMainFrame=true

2014-09-25T03:30:44.766Z - info: offerCmd stdout: [debug] [phantom] Navigation requested: url=http://steamcommunity.com/market/, type=Oth
er, willNavigate=true, isMainFrame=true

2014-09-25T03:30:45.105Z - info: offerCmd stdout: [debug] [phantom] Navigation requested: url=https://steamcommunity.com/market/eligibili
tycheck/?goto=/market/, type=Other, willNavigate=true, isMainFrame=true

2014-09-25T03:30:45.698Z - info: offerCmd stdout: [warning] [phantom] Loading resource failed with status=fail (HTTP 302): https://steamc
ommunity.com/market/eligibilitycheck/?goto=/market/

and user not authorizate with cookies from file.

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.