Advertisement
Tretlenz

part1

Mar 7th, 2018
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. function AcceptMobileOffer() {
  3.     // Информация для мобильных подтверждений
  4.     var steamcommunityMobileConfirmations = new SteamcommunityMobileConfirmations(
  5.         {
  6.             steamid: config.bot.steamid,
  7.             identity_secret: config.bot.identity_secret,
  8.             device_id: device_id,
  9.             webCookie: WebCookies,
  10.         });
  11.  
  12.     steamcommunityMobileConfirmations.FetchConfirmations((function (err, confirmations) {
  13.         if (err) {
  14.             console.log(err);
  15.             return;
  16.         }
  17.         console.tag('БОТ', 'Мобильное подтверждение').log('Трейдов в ожидании: ' + confirmations.length);
  18.         if (!confirmations.length) {
  19.             return;
  20.         }
  21.         steamcommunityMobileConfirmations.AcceptConfirmation(confirmations[0], (function (err, result) {
  22.             if (err) {
  23.                 console.log(err);
  24.                 return;
  25.             }
  26.             console.tag('БОТ', 'Мобильное подтверждение').log('Результат: ' + result);
  27.         }).bind(this));
  28.     }).bind(this));
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement