Giter Site home page Giter Site logo

steambot's Introduction

steamBotTemplate

Please don't create an issue if you need help - join gitter chat. Thanks.

Join the chat at https://gitter.im/bulgakovk/steamBot

What is 2FA.js?

It's script which provides you to enable mobile authentication in Steam.

How to use 2FA.js?

Be sure that you have attached mobile number for your steam accout before doing these steps (do it here). You can use one number for several accounts btw.

P.S. I really want to make a simple web-site with activation mobile auth functionality so If you have free VPS or want to become a sponsor - let me know.

Here are 4 simple steps:

1)Download 2FA.js file.

2)Install node package using npm. Just write this code in console:

npm install steamcommunity

  1. You will see the interactive part of script. Put your Steam login name/password/code from e-mail/code from SMS when you see the appropriate commands.
  1. If all was correct you're going to see "2fa finalized sucessfly". Now you have new file with your shared and identity secrets in your directory. Good job!

What is shared_secret?

Secret string using to generate one time passwords to login into Steam.

What is identity_secret?

Secret string using to generate one time passwords to accept outgoing trade offers.

What is bot.js?

It's template for your bot. The most important things which it provides for you are login to steam using new Escrow system and accept offers, using automaticly generated codes. It is not final solution for jackpot or other sites! But you can do whatever you want using this template.

Where bot gets items prices?

https://bitskins.com/api

How to run bot.js

Don't forget to change login/password and all secrets in source! Install these node packages using npm:

steam-user

steam-tradeoffer-manager

steam-totp

steamcommunity-mobile-confirmations

onceler

request

steambot's People

Contributors

andrewda avatar bitdeli-chef avatar bulgakovk avatar gitter-badger avatar maarethyu avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

steambot's Issues

new help Error

C:\botarno>node bot.js
Steam Guard App Code:
Steam Guard App Code: .......
Logged ON!
Got API key: ...........................................
C:\botarno\bot.js:99
newItems.forEach(function(newItem,i,arr){
^

TypeError: Cannot read property 'forEach' of undefined
at Request.callback as _callback
at Request.self.callback (C:\botarno\node_modules\request\request.js:198:22)

at emitTwo (events.js:87:13)
at Request.emit (events.js:172:7)
at Request.<anonymous> (C:\botarno\node_modules\request\request.js:1035:10)
at emitOne (events.js:82:20)
at Request.emit (events.js:169:7)
at IncomingMessage.<anonymous> (C:\botarno\node_modules\request\request.js:9

62:12)
at emitNone (events.js:72:20)
at IncomingMessage.emit (events.js:166:7)

C:\botarno>pause
Press any key to continue . . .
this happens when it gets a trade

Error accepting offer

I try to accept trade offer but i get this error:
[10:56:12:952] Message: "Error (8)" at row:231, Content: { [Error: There was an error accepting this trade offer. Please try again later. (11)] eresult: 11 }

my code:
offer.accept(function(err) {
if (err) helper.log("Error (8)", 231, err);
});

Error: socket hang up

Hey, i get this error: http://prntscr.com/9ke8bf
My code:

getoffers();

function getoffers() {
manager.getOffers({
"ActiveOnly": 1
}, function(err, offers_sent, offers_received) {
if (err) {
console.log(err);
}
if (offers_received) {
offers_received.forEach(function(offer) {
(...)

Error 2

Hello!

I have problem.
I have Error 2.
What I have to do?

Items Now Unavailable For Trade

Hey, i am trying to trade the same items to my steam account, but when i send more than 1 offer from my bot and then try to accept one of these offers, then on unaccepted offers i see: Items Now Unavailable For Trade. I tried with "if (item.tradable) {" but it's not working. My code:

manager.loadInventory("730", "2", true, function(err, inventory, currencies) {

var itemNames = [];
itemNames[0] = "Chroma 2 Case";
itemNames[1] = "Chroma 2 Case";
itemNames[2] = "Operation Breakout Weapon Case";

var num = 0;

var pool = inventory.filter(function (item) {

    for (var i = 0; i < itemNames.length; i++) {
        if (item.tradable && item["market_name"] == itemNames[i]) {
            itemNames.splice(i, 1);
            num++;
            return true;
        }
    }

    return false;
});

if (num > 0) {
    var gamenum = 5;

    var offer = manager.createOffer("xxxxxxxx");
    offer.addMyItems(pool);
    offer.send("Your winning on site " + sitename + " in game #" + gamenum, "xxxxx", function(err, status) {
        if (err) {
            helper.log("Error (13)", 210, err);
        } else {
            helper.msg(status);
            helper.msg("Trade offer for queue " + gamenum + " sent!"); 
            g_pause = false;
        }
    });
}

});

Could you inculde MYSQL?

Hey, could you inculde MYSQL for Gambling Sites because the bot is working but not with MYSQL :x

2FA.js Error: SteamGuardMobile

After start the 2FA.js i get this:

root@:/var/steamBot-master# node 2FA.js
Username: Username
Password: UserNamePassword
[Error: SteamGuardMobile]
SteamGuard code: CFDR5
Err after community login: Error: SteamGuardMobile
root@:/var/steamBot-master#

help Error

C:\botarno>node bot2.js
events.js:141
throw er; // Unhandled 'error' event
^

Error: InvalidPassword
at SteamUser._handlers.(anonymous function) (C:\botarno\node_modules\steam-u
ser\components\logon.js:269:16)
at SteamUser._handleMessage (C:\botarno\node_modules\steam-user\components\m
essages.js:165:29)
at emitThree (events.js:97:13)
at CMClient.emit (events.js:175:7)
at CMClient._netMsgReceived (C:\botarno\node_modules\steam-user\node_modules
\steam-client\lib\cm_client.js:260:8)
at CMClient.handlers.(anonymous function) (C:\botarno\node_modules\steam-use
r\node_modules\steam-client\lib\cm_client.js:358:8)
at CMClient._netMsgReceived (C:\botarno\node_modules\steam-user\node_modules
\steam-client\lib\cm_client.js:242:24)
at emitOne (events.js:77:13)
at TCPConnection.emit (events.js:169:7)
at TCPConnection._readPacket (C:\botarno\node_modules\steam-user\node_module
s\steam-client\lib\tcp_connection.js:59:7)

C:\botarno>pause
Press any key to continue . . .

its not an Invalid Password btw

How to get the authcode

Hi there,

I want to connect to steamcommunity with my bot account, is there a way to obtain the auth code that we normaly receive on the android application ?

Need help with Installation

Hey^^ im new to Steam API / Steam bots and all that stuff, i would need a bit help, since the new update im completly brainfucked, would be nice :). Do you got steam or skype or teamspeak?

Access Denied

Hey, i get this error when i try to send trade offer. My code:
manager.loadInventory("730", "2", true, function(err,inventory, currencies){
if (err) console.log(err);
var Item;
inventory.forEach(function(item,i,arr){
if (item.market_hash_name == "Chroma 2 Case") Item = item;
});
var offer = manager.createOffer("xxxxxxxx"); //Put here stemdId
offer.addMyItem(Item);
offer.send("Hello!", function(err,status){
if (err) console.log(err);
else console.log(status);
});
});

Make offer

Hey, could you help me to write the code that sends a trade offer?

Logged on! - But not online in Steam?

Hi,

is it normal, that the Bot is online in (Console) but in Friendlist he is not online?

And can you write a short "Readme/Tutorial" how to accept/decline Trades?

help me please

hello~
i got this problem ,may you help me?how can i use this?
image

Error: There have been too many login failures from your network

It says;
Error: There have been too many login failures from your network in a short time period. Please wait and try again later.]

And no, mobile guard not enabled. I tried to login many times before I wrote the correct values of secret and identity keys, so it happened because of this I guess. But it's been 12 hours since I tried to login many times, when this cooldown going to finish?

Thanks.

Cannot read property 'forEach' of undefined

Hi,

i wanted to use your Bot! Thanks for it!
But i have an Error, when there coming an Offer.

 newItems.forEach(function(newItem,i,arr){
         ^
 TypeError: Cannot read property 'forEach' of undefined

In line 99, can you help?
When i make console.log(newItems) is undefined

Is that cause SECRET Bitskins Code is not there?
I dont find the SECRET on Bitskins, only the access

Error after connected

I have a little problem I can connect to what I see, but I live obtained after this error? a solution ? : /

ggggg

Semicolon bug

There's a bug in the details:
"twoFactorCode" : SteamTotp.generateAuthCode("YOUR_SHARED_SECRET");
Remove the ";".

Ps: Really sorry, I dont know how to commit and such >_<
Thanks for releasing this bot <3

About the error 2

Hi there, first, i'd say thank you for the creator of this project and all of the contributors, you all rock guys :p

So we are some that have troubles with the Error 2. To summary, it happens after launching 2FA.js. After enterring the auth code we received by mail, program stops after displaying "Error 2".

So if you have any update, do not hesitate ! It looks we have to write a ticket here : http://steamcommunity.com/groups/SteamRE

I think my bot is well setup, it's a normal account without the mobile authentication enabled yet, also the trade confirmation email is disabled, all settings are set to public. Don't have any sentry file yet. It's launched on a windows 7 machines, all packages had been download with npm just today

How much?

Hello how much time you need to end this bot for jackpotfiles? I have 10k fans and if i can start my own JackpotSite it can generate profit ;)

configure problem.

Hello, how i can run it on mysql script? I don't see a configure of it.

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.