Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function AcceptMobileOffer() {
- // Информация для мобильных подтверждений
- var steamcommunityMobileConfirmations = new SteamcommunityMobileConfirmations(
- {
- steamid: config.bot.steamid,
- identity_secret: config.bot.identity_secret,
- device_id: device_id,
- webCookie: WebCookies,
- });
- steamcommunityMobileConfirmations.FetchConfirmations((function (err, confirmations) {
- if (err) {
- console.log(err);
- return;
- }
- console.tag('БОТ', 'Мобильное подтверждение').log('Трейдов в ожидании: ' + confirmations.length);
- if (!confirmations.length) {
- return;
- }
- steamcommunityMobileConfirmations.AcceptConfirmation(confirmations[0], (function (err, result) {
- if (err) {
- console.log(err);
- return;
- }
- console.tag('БОТ', 'Мобильное подтверждение').log('Результат: ' + result);
- }).bind(this));
- }).bind(this));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement