S
S
sevavizir2016-03-11 09:07:02
Steam
sevavizir, 2016-03-11 09:07:02

How to auto-send steam items at intervals?

I am creating a bonus bot for roulette, but I ran into a problem when I launch nothing happens.
Here is my code

function offerItems() {
  offers.loadMyInventory({
    appId: 730,
    contextId: 2
  }, function(err, items) {
    var item;
    // выбрать первый трейдабельнй предмет
    for (var i = 0; i < items.length; i++) {
      if (items[i].tradable) {
        item = items[i];
        break;
      }
    }
    // если выбрал, то делает оффер
    if (item) {
      offers.makeOffer ({
        partnerSteamId: admin,
        itemsFromMe: [
          {
            appid: 730,
            contextid: 2,
            amount: 1,
            assetid: item.id
          }
        ],
        itemsFromThem: [],
        message: 'This is test'
      }, function(err, response) {
        if (err) {
          throw err;
        }
        console.log(response);
      });
    }
  });
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question