Jump to content
McKay Development

Recommended Posts

Posted
manager.getOffer(offers.id, function (err, offer) {
			if (!err) {
				steamBotLogger('Ðачинаем прием трейда: #' + offer.id);
				offer.accept(function (err, status) {
					if (!err) {
						redisClient.multi([
							["lrem", redisChannels.tradeoffersList, 0, offer.id],
							["lrem", redisChannels.usersQueue, 1, offer.partner.getSteamID64()],
							["rpush", redisChannels.betsList, offerJson],
							["lrem", redisChannels.checkedList, 0, offerJson]
						]).exec(function (err, replies) {
							redisClient.lrange(redisChannels.usersQueue, 0, -1, function (err, queues) {
								io.emit('queue', queues);
								steamBotLogger("Трейд #" + offer.id + " принÑÑ‚");
								checkedProcceed = false;
							});
						})
						return;
					} else {
						console.log(err);
						if (err.eresult != 11 || err.eresult != 28) {
							steamBotLogger(err);
						}
						if (err.eresult == 11) {
							setTimeout(function () {
								checkedOffersProcceed(offerJson);
							}, 1000);
						} else {
							setTimeout(function () {
								AcceptOffer(offer, offerJson);
							}, 1000);
						}
					}
				});
			}
			else {
				steamBotLogger('Ошибка Ð¿Ð¾Ð»ÑƒÑ‡ÐµÐ½Ð¸Ñ Ñ‚Ñ€ÐµÐ¹Ð´Ð° #' + offer.id);
			}
		});

Does not accept all accounts from 2 accounts with 1 account accepts.

 

Donate $ 5 each year or 1 time?

 

 

Donate $ 5 each year or 1 time?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...