Giter Site home page Giter Site logo

Access Denied about steambot HOT 4 CLOSED

bulgakovk avatar bulgakovk commented on August 21, 2024
Access Denied

from steambot.

Comments (4)

bulgakovk avatar bulgakovk commented on August 21, 2024

Can you show error log in console? Make screen please.

from steambot.

 avatar commented on August 21, 2024

http://prntscr.com/9hc923

from steambot.

bulgakovk avatar bulgakovk commented on August 21, 2024

Did you try to write Item in console and check it? I mean are you sure that it's correct?

from steambot.

 avatar commented on August 21, 2024

I think it's because i didn't set accessToken. In other bot (it is not working now because of steam update) i see the code:

                offers.makeOffer ({
                    partnerSteamId: row[i].userid,
                    itemsFromMe: item,
                    accessToken: row[i].token,
                    itemsFromThem: [],
                    message: 'Your winning on site '+sitename+' in game #'+gamenum
                }, function(err, response){
                    if (err) {
                        return;
                    }
                    console.log('Trade offer for queue '+gamenum+' sent!'); 
                });

but i cannot imagine how the code should look in your bot.

Edit:
Yes! I found a solution.
The 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!", "token", function(err,status){
if (err) console.log(err);
else console.log(status);
});
});

from steambot.

Related Issues (20)

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.