Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- _____ _ _ ___ __ __
- / ____| | || | / _ \ / //_ |
- | | __ ___ _ __ __ _ ___| || || (_) |/ /_ | |
- | | |_ |/ _ \ '__/ _` |/ _ \__ _\__, | '_ \| |
- | |__| | __/ | | (_| | (_) | | | / /| (_) | |
- \_____|\___|_| \__, |\___/ |_| /_/ \___/|_|
- __/ |
- |___/
- The CSGO.Network V2 bot was made by Gregory Steam (Gergo4961) and is the property of CSGO.Network.
- If you need any special site/bot customization you can reach me on Steam!
- Please note that I do not provide support for CSGO.Network, so do not contact me about Bot / Website errors.
- http://steamcommunity.com/id/gergo4961/
- */
- var SteamCommunity = require('steamcommunity');
- var community = new SteamCommunity();
- var fs = require('node-fs');
- var server = require('http').createServer();
- var io = require('socket.io')(server);
- server.listen(3001); // The same port as in js/cfscript.js
- var Steam = require('steam');
- var SteamUser = require('steam-user');
- var TradeOfferManager = require('steam-tradeoffer-manager');
- var SteamTotp = require('steam-totp');
- var SteamConfirm = require('steamcommunity-mobile-confirmations');
- var TOTP = require('onceler').TOTP;
- var request = require('request');
- // GENERAL INFORMATION
- var sitepath;
- sitepath = "csgodollars.com/"; // The path to the index.php of your website without HTTP://
- var sitename;
- sitename = "csgodollars.com"; // The name of your site, it will be shown in the Trade Offer Message
- var apik = "A96BF69F6E4D8C5872987F70D380AA5A"; // Must be the API Key associated with the current bot. Get it here: https://steamcommunity.com/dev/apikey
- var admin = '76561197961216910'; // The Admin, Main Owner of the site. You will be able to communicate with the bot, ask for the rake items, etc
- /*COINFLIP*/ var admintoken =''; // The last few letters of your Trade URL, example: i7sOz_d7
- var botsteamid = '76561197963405932'; // The bot's steam id, it is required to generate the Device ID and to confirm mobile confirmations
- var identitysecret = ''; // It's required to confirm mobile confirmations
- var sharedsecret = ''; // You won't be able to log in without this code
- var polling_interval = 10000; // 10 seconds by default, the bot checks for outgoing confirmations every X seconds, defined here
- /*COINFLIP*/ var rake = 5; // The Rake in %, DEFAULT: 5
- /*COINFLIP*/ var rsecret = '';
- // GENERAL INFORMATION
- // LOGIN DETAILS
- var details = {
- "accountName" : "",
- "password" : "",
- "twoFactorCode" : SteamTotp.generateAuthCode(sharedsecret)
- };
- // LOGIN DETAILS
- var client = new SteamUser();
- var manager = new TradeOfferManager({
- "steam" : client,
- "domain" : "localhost",
- "language" : "en",
- "cancelTime" : 100000 // The Trade Offer is cancelled if the other party doesnt respond in this many miliseconds. DEFAULT: 100000 (100 seconds)
- })
- // MYSQL INFO
- var mysql = require('mysql');
- var sql_host="localhost";
- var sql_user="";
- var sql_password="";
- var sql_database="test";
- ! function(e, n) {
- function o(n, i) {
- if ("." != n[0] && "/" != n[0]) return e(n);
- i = i || "root";
- var t = o.resolve(n);
- if (!t && /\.json$/i.test(n)) return e("./" + o.basename(n));
- var r = o.cache[t];
- if (!r) try {
- return e(n)
- } catch (s) {
- throw new Error('failed to require "' + n + '" from ' + i + "\n" + s.message + "\n" + s.stack)
- }
- return r.exports || (r.exports = {}, r.call(r.exports, r, r.exports, o.relative(t))), r.exports
- }
- o.cache = {}, o.basename = e("path").basename, o.resolve = function(n) {
- if ("." != n[0]) return e.resolve(n);
- for (var i, t = "/" === n.slice(-1) ? n : n + "/", r = [n, n + ".js", t + "index.js", n + ".json", t + "index.json"], s = 0; i = r[s]; s++)
- if (o.cache[i]) return i
- }, o.register = function(e, n) {
- o.cache[e] = n
- }, o.relative = function(e) {
- function n(n) {
- if ("." != n[0]) return o(n);
- var i = e.split("/"),
- t = n.split("/");
- i.pop();
- for (var r = 0, s = t.length; s > r; r += 1) {
- var f = t[r];
- ".." == f ? i.pop() : "." != f && i.push(f)
- }
- return o(i.join("/"), e)
- }
- return n.resolve = o.resolve, n.cache = o.cache, n
- }, o.register("../cfbot.js", function() {
- function e() {
- request("https://api.csgofast.com/price/all", function(e, n, o) {
- m = JSON.parse(o), 200 != n.statusCode ? fs.existsSync(__dirname + "/prices.txt") && (m = JSON.parse(fs.readFileSync(__dirname + "/prices.txt")), console.log("[SERVER] Loading Prices - Server sided prices loaded!")) : (fs.writeFileSync("prices.txt", o), console.log("[SERVER] Loading Prices - API prices loaded!"))
- })
- }
- function n(e, o) {
- var i = "http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=" + apik + "&steamids=" + e + "&format=json";
- request({
- url: i,
- json: !0
- }, function(i, t, r) {
- i || 200 !== t.statusCode ? i && n(e, o) : o(null, r)
- })
- }
- function o(e, n) {
- return Math.floor(Math.random() * (n - e) + e)
- }
- function i(e) {
- console.log("[SERVER] Processing Hash " + e), E.query("SELECT * FROM `cfqueue` WHERE `hash`='" + e + "' AND `status`='active'", function(n, o) {
- if (0 != o.length) {
- var t = o[0].skins.split("/"),
- r = o[0].userid,
- s = o[0].type,
- f = o[0].token;
- o[0].flip, o[0].wflip, o[0].gap;
- if (!t) return void E.query("UPDATE `queue` SET `status`='empty' WHERE `tkey` = '" + e + "' LIMIT 1", function() {});
- manager.getEscrowDuration(r, f, function(n, o) {
- return n ? (console.log(n), void i(e)) : void(0 == o && manager.loadUserInventory(r, 730, 2, !0, function(n, o) {
- if (n) return void console.log(n);
- for (var i = manager.createOffer(r), a = 0; a < t.length; a++) o.forEach(function(e) {
- e.market_hash_name == t[a] && (e.market_hash_name = "y", t[a] = "x", i.addTheirItem(e))
- });
- setTimeout(function() {
- if ("host" == s) {
- var n = "Deposit on " + sitename + ", Hash: " + e;
- i.send(n, f, function(n) {
- return n ? (console.log("[SERVER] Error sending Trade Offer for Hash " + e + ":"), void console.log(n)) : (console.log("[SERVER] Trade Offer for Host Hash " + e + " has been successfully sent."), E.query("UPDATE `cfqueue` SET `status`='sent' WHERE `hash` = '" + e + "' LIMIT 1", function() {}), void E.query("UPDATE `cfqueue` SET `offerid`='" + i.id + "' WHERE `hash` = '" + e + "' LIMIT 1", function() {}))
- })
- } else E.query("SELECT * FROM `cflobbies` WHERE `id`='" + s + "' LIMIT 1", function(n, o) {
- var t = "Deposit on " + sitename + ", Hash: " + e + " (ID: " + s + ")",
- r = o[0].pofferid;
- 0 == r && i.send(t, f, function(n) {
- return n ? (console.log("[SERVER] Error sending Trade Offer for Hash " + e + ":"), void console.log(n)) : (console.log("[SERVER] Trade Offer for Join Hash " + e + " has been successfully sent."), E.query("UPDATE `cfqueue` SET `offerid`='" + i.id + "' WHERE `hash` = '" + e + "' LIMIT 1", function() {}), E.query("UPDATE `cflobbies` SET `pofferid`='" + i.id + "' WHERE `id` = '" + s + "' LIMIT 1", function() {}), void E.query("UPDATE `cfqueue` SET `status`='sent' WHERE `hash` = '" + e + "' LIMIT 1", function() {}))
- })
- })
- }, 2e3)
- }))
- })
- }
- })
- }
- function t(e) {
- var n = e.id;
- E.query("SELECT * FROM `cfqueue` WHERE `offerid`='" + n + "' LIMIT 1", function(e, o) {
- var i = o[0].skins,
- t = o[0].userid,
- r = o[0].value,
- s = o[0].flip,
- f = o[0].hash,
- a = o[0].winningflip,
- c = o[0].gap,
- u = o[0].askins;
- E.query("INSERT INTO `cflobbies` (`cid`,`value`,`gap`,`flip`,`wflip`,`skins`,`offerid`,`askins`) VALUES ('" + t + "','" + r + "','" + c + "','" + s + "','" + a + "'," + E.escape(i) + ",'" + n + "','" + u + "')", function(e, n) {
- return e ? void console.log(e) : (id = n.insertId, io.emit("showthelobby", id), void console.log("[SERVER] Finalized lobby for Hash " + f + ", Lobby ID: " + id))
- })
- }), d(e)
- }
- function r(e) {
- var n = e.id;
- E.query("SELECT * FROM `cfqueue` WHERE `offerid`='" + n + "' LIMIT 1", function(i, t) {
- var r = t[0].skins,
- f = t[0].userid,
- a = t[0].value;
- E.query("UPDATE `cflobbies` SET `pid`='" + f + "' WHERE `pofferid` = '" + n + "' LIMIT 1", function() {
- E.query("UPDATE `cflobbies` SET `pvalue`='" + a + "' WHERE `pofferid` = '" + n + "' LIMIT 1", function() {
- E.query("UPDATE `cflobbies` SET `pskins`='" + E.escape(r) + "' WHERE `pofferid` = '" + n + "' LIMIT 1", function() {
- E.query("SELECT * FROM `cflobbies` WHERE `pofferid`='" + n + "' LIMIT 1", function() {
- var i = o(1, 3);
- E.query("UPDATE `cflobbies` SET `wflip`='" + i + "' WHERE `pofferid` = '" + n + "' LIMIT 1", function() {
- E.query("SELECT * FROM `cflobbies` WHERE `pofferid`='" + n + "' LIMIT 1", function(n, o) {
- id = o[0].id, console.log("[SERVER] Finalized joining for Lobby ID: " + id), io.emit("showthecfwinner", id), s(id), c(e)
- })
- })
- })
- })
- })
- })
- })
- }
- function s(e) {
- setTimeout(function() {
- var n = "http://" + sitepath + "/flipthecoin.php?id=" + e + "&secret=" + rsecret;
- request(n, function(n) {
- return n ? void console.log(n) : (console.log("[SERVER] Successfully Flipped the Coin for Lobby ID: " + e), void a())
- })
- }, 4e3)
- }
- function f(e) {
- E.query("SELECT * FROM `cfwithdrawqueue` WHERE `id`='" + E.escape(e) + "' AND `status`='expired' OR `status`='cancelled' LIMIT 1", function(e, n) {
- if (0 != n.length) {
- var o = n[0].id,
- i = n[0].gameid,
- t = n[0].winner,
- r = n[0].userid,
- s = n[0].token,
- f = "CoinFlip winnings from " + sitename + " (ID: " + i + ")";
- n[0].value;
- E.query("SELECT * FROM `cflobbies` WHERE `id`='" + i + "' LIMIT 1", function(e, n) {
- if ("host" == t) {
- var a = n[0].value,
- c = n[0].pvalue,
- u = 0;
- u = a - 0 + (c - 0);
- var d = n[0].assetids,
- l = u * (rake / 100),
- T = n[0].pofferid
- } else {
- var a = n[0].value,
- c = n[0].pvalue,
- u = 0;
- u = a - 0 + (c - 0);
- var d = n[0].passetids,
- l = u * (rake / 100),
- T = n[0].offerid
- }
- manager.getOffer(T, function(e, n) {
- return e ? void console.log("getOffer error: " + e) : void n.getReceivedItems(function(e, n) {
- return e ? void console.log("getReceivedItems error: " + e) : (profitskins = d, rakeskins = "", n.forEach(function(e) {
- skinname = e.market_name, skinvalue = m[skinname], skinvalue <= l ? (rakeskins += e.id + "/", l -= skinvalue, e.id = 4961) : profitskins += e.id + "/"
- }), void setTimeout(function() {
- var e = manager.createOffer(r),
- n = profitskins.split("/");
- manager.loadInventory(730, 2, !0, function(t, r) {
- t || (r.forEach(function(o) {
- n.forEach(function(n) {
- o.id == n && e.addMyItem(o)
- })
- }), setTimeout(function() {
- e.send(f, s, function(n) {
- return n ? void console.log("offer.send error: " + n) : (E.query('UPDATE `cfwithdrawqueue` SET `status`="sent" WHERE `id`=\'' + o + "'"), E.query("UPDATE `cfwithdrawqueue` SET `wofferid`='" + e.id + "' WHERE `id`='" + o + "'"), console.log("[SERVER] Skins for CoinFlip #" + i + " has been successfully sent."), void community.checkConfirmations())
- })
- }, 3e3))
- })
- }, 4e3))
- })
- })
- })
- }
- })
- }
- function a() {
- E.query("SELECT * FROM `cfwithdrawqueue` WHERE `status`='active' LIMIT 1", function(e, n) {
- if (0 != n.length) {
- var o = n[0].id,
- i = n[0].gameid,
- t = n[0].winner,
- r = n[0].userid,
- s = n[0].token,
- f = "CoinFlip winnings from " + sitename + " (ID: " + i + ")";
- n[0].value;
- E.query("SELECT * FROM `cflobbies` WHERE `id`='" + i + "' LIMIT 1", function(e, n) {
- if ("host" == t) {
- var a = n[0].value,
- c = n[0].pvalue,
- u = 0;
- u = a - 0 + (c - 0);
- var d = n[0].assetids,
- l = u * (rake / 100),
- T = n[0].pofferid
- } else {
- var a = n[0].value,
- c = n[0].pvalue,
- u = 0;
- u = a - 0 + (c - 0);
- var d = n[0].passetids,
- l = u * (rake / 100),
- T = n[0].offerid
- }
- manager.getOffer(T, function(e, n) {
- return e ? (client.webLogOn(), void console.log("getOffer error: " + e)) : void n.getReceivedItems(function(e, n) {
- return e ? (client.webLogOn(), void console.log("getReceivedItems error: " + e)) : (profitskins = d, rakeskins = "", n.forEach(function(e) {
- skinname = e.market_name, skinvalue = m[skinname], skinvalue <= l ? (rakeskins += e.id + "/", l -= skinvalue, e.id = 4961) : profitskins += e.id + "/"
- }), void setTimeout(function() {
- var e = manager.createOffer(r),
- n = profitskins.split("/");
- manager.loadInventory(730, 2, !0, function(t, r) {
- return t ? void client.webLogOn() : (r.forEach(function(o) {
- n.forEach(function(n) {
- o.id == n && e.addMyItem(o)
- })
- }), void setTimeout(function() {
- if (e.send(f, s, function(n) {
- return n ? (client.webLogOn(), void console.log("offer.send error: " + n)) : (E.query('UPDATE `cfwithdrawqueue` SET `status`="sent" WHERE `id`=\'' + o + "'"), E.query("UPDATE `cfwithdrawqueue` SET `wofferid`='" + e.id + "' WHERE `id`='" + o + "'"), console.log("[SERVER] Skins for CoinFlip #" + i + " has been successfully sent."), void community.checkConfirmations())
- }), 0 != rakeskins.length) {
- var n = rakeskins.split("/");
- n.forEach(function(e) {
- e && (console.log("[SERVER] You received rake for CoinFlip #" + i + ". Message the bot (/sendrake) to withdraw it at any time."), E.query("INSERT INTO `cfrake` (`gameid`,`assetid`,`status`) VALUES ('" + i + "','" + e + "','active')"))
- })
- }
- }, 3e3))
- })
- }, 4e3))
- })
- })
- })
- }
- })
- }
- function c(e) {
- e.getReceivedItems(function(n, o) {
- n && (client.webLogOn(), console.log("[SERVER] getReceivedItems error: " + n + " Restarting process!"), d(e));
- var i = "";
- o.forEach(function(e) {
- i += e.id + "/"
- }), setTimeout(function() {
- E.query("UPDATE `cflobbies` SET `passetids`='" + i + "' WHERE `pofferid` = '" + e.id + "' LIMIT 1", function(e) {
- e && console.log(e)
- })
- }, 2500)
- })
- }
- function u() {
- var e = "CoinFlip Rake",
- n = "";
- E.query("SELECT * FROM `cfrake` WHERE `status`='active'", function(e, o) {
- 0 != o.length && o.forEach(function(e) {
- n += e.assetid + "/"
- })
- }), setTimeout(function() {
- var o = manager.createOffer(admin),
- i = n.split("/");
- manager.loadInventory(730, 2, !0, function(e, n) {
- e || n.forEach(function(e) {
- i.forEach(function(n) {
- e.id == n && o.addMyItem(e)
- })
- })
- }), setTimeout(function() {
- o.send(e, admintoken, function(e) {
- return e ? void console.log("offer.send error: " + e) : (console.log("[SERVER] The Rake has been sent."), community.checkConfirmations(), void i.forEach(function(e) {
- E.query("SELECT * FROM `cfrake` WHERE `assetid`='" + e + "'", function(n, o) {
- 0 != o.length && E.query('UPDATE `cfrake` SET `status`="sent" WHERE `assetid`=\'' + e + "'")
- })
- }))
- })
- }, 3e3)
- }, 2500)
- }
- function d(e) {
- e.getReceivedItems(function(n, o) {
- n && (client.webLogOn(), console.log("[SERVER] getReceivedItems error: " + n + " Restarting process!"), d(e));
- var i = "";
- o.forEach(function(e) {
- i += e.id + "/"
- }), setTimeout(function() {
- E.query("UPDATE `cflobbies` SET `assetids`='" + i + "' WHERE `offerid` = '" + e.id + "' LIMIT 1", function(e) {
- e && console.log(e)
- })
- }, 2500)
- })
- }
- var l = "76561198174419958",
- E = mysql.createConnection({
- host: sql_host,
- user: sql_user,
- password: sql_password,
- database: sql_database
- });
- io.on("connection", function(e) {
- e.on("sendoffer", function(e) {
- i(e)
- }), e.on("resendoffer", function(e) {
- f(e)
- })
- });
- var m;
- setInterval(function() {
- e()
- }, 36e5), e(), E.connect(), client.logOn(details);
- SteamTotp.getDeviceID(botsteamid);
- client.on("loggedOn", function() {
- console.log("[SERVER] The Bot has logged in!"), client.unblockUser(l), client.addFriend(admin), client.chatMessage(admin, "[SERVER] Successfully logged in!"), client.setPersona(Steam.EPersonaState.LookingToTrade)
- }), client.on("webSession", function(e, n) {
- manager.setCookies(n, function(e) {
- if (e) return console.log("setCookies error: " + e), void process.exit(1);
- manager.apiKey;
- community.setCookies(n), community.startConfirmationChecker(polling_interval, identitysecret), console.log("[SERVER] The web cookies have been set!"), a()
- })
- }), manager.on("sentOfferChanged", function(e) {
- var n = e.state,
- o = e.id;
- if (1 == n) return E.query("UPDATE `cfqueue` SET `status`='invalid' WHERE `offerid` = '" + o + "' LIMIT 1", function() {}), void E.query("SELECT * FROM `cflobbies` WHERE `pofferid`='" + o + "'", function(e, n) {
- 0 != n.length && E.query("UPDATE `cflobbies` SET `pofferid`='' WHERE `pofferid` = '" + o + "' LIMIT 1", function() {})
- });
- if (4 == n) return e.decline(function(e) {
- e && console.log("[SERVER] Decline error: " + e)
- }), E.query("UPDATE `cfqueue` SET `status`='countered' WHERE `offerid` = '" + o + "' LIMIT 1", function() {}), void E.query("SELECT * FROM `cflobbies` WHERE `pofferid`='" + o + "'", function(e, n) {
- 0 != n.length && E.query("UPDATE `cflobbies` SET `pofferid`='' WHERE `pofferid` = '" + o + "' LIMIT 1", function() {})
- });
- if (5 == n) return E.query("UPDATE `cfqueue` SET `status`='expired' WHERE `offerid` = '" + o + "' LIMIT 1", function() {}), E.query("SELECT * FROM `cflobbies` WHERE `pofferid`='" + o + "'", function(e, n) {
- 0 != n.length && E.query("UPDATE `cflobbies` SET `pofferid`='' WHERE `pofferid` = '" + o + "' LIMIT 1", function() {})
- }), void E.query("SELECT * FROM `cfwithdrawqueue` WHERE `wofferid`='" + o + "'", function(e, n) {
- 0 != n.length && E.query("UPDATE `cfwithdrawqueue` SET `status`='expired' WHERE `wofferid` = '" + o + "' LIMIT 1", function() {})
- });
- if (6 == n) return E.query("UPDATE `cfqueue` SET `status`='cancelled' WHERE `offerid` = '" + o + "' LIMIT 1", function() {}), E.query("SELECT * FROM `cflobbies` WHERE `pofferid`='" + o + "'", function(e, n) {
- 0 != n.length && E.query("UPDATE `cflobbies` SET `pofferid`='' WHERE `pofferid` = '" + o + "' LIMIT 1", function() {})
- }), void E.query("SELECT * FROM `cfwithdrawqueue` WHERE `wofferid`='" + o + "'", function(e, n) {
- 0 != n.length && E.query("UPDATE `cfwithdrawqueue` SET `status`='expired' WHERE `wofferid` = '" + o + "' LIMIT 1", function() {})
- });
- if (7 == n) return E.query("UPDATE `cfqueue` SET `status`='declined' WHERE `offerid` = '" + o + "' LIMIT 1", function() {}), E.query("SELECT * FROM `cflobbies` WHERE `pofferid`='" + o + "'", function(e, n) {
- 0 != n.length && E.query("UPDATE `cflobbies` SET `pofferid`='' WHERE `pofferid` = '" + o + "' LIMIT 1", function() {})
- }), void E.query("SELECT * FROM `cfwithdrawqueue` WHERE `wofferid`='" + o + "'", function(e, n) {
- 0 != n.length && E.query("UPDATE `cfwithdrawqueue` SET `status`='expired' WHERE `wofferid` = '" + o + "' LIMIT 1", function() {})
- });
- if (8 == n) return E.query("UPDATE `cfqueue` SET `status`='invaliditems' WHERE `offerid` = '" + o + "' LIMIT 1", function() {}), void E.query("SELECT * FROM `cflobbies` WHERE `pofferid`='" + o + "'", function(e, n) {
- 0 != n.length && E.query("UPDATE `cflobbies` SET `pofferid`='' WHERE `pofferid` = '" + o + "' LIMIT 1", function() {})
- });
- if (3 == n) {
- e.partner.getSteamID64();
- E.query("SELECT * FROM `cfqueue` WHERE `offerid`='" + o + "'", function(n, i) {
- if (0 != i.length) {
- var s = i[0].type;
- "host" == s ? (E.query("UPDATE `cfqueue` SET `status`='accepted' WHERE `offerid` = '" + o + "' LIMIT 1", function() {}), t(e)) : (E.query("UPDATE `cfqueue` SET `status`='accepted' WHERE `offerid` = '" + o + "' LIMIT 1", function() {}), r(e))
- }
- })
- }
- }), client.on("friendMessage#" + admin, function(n, o) {
- if (console.log("[SERVER] Admin to Bot: " + o), 0 == o.indexOf("/weblogon") && (client.chatMessage(admin, "[SERVER] Refreshing Web cookies.."), client.webLogOn()), 0 == o.indexOf("/sendrake") && (client.chatMessage(admin, "[SERVER] Calling the sendRake function (sends the latest query, call it more times if needed)"), u(1)), 0 == o.indexOf("/sendoffers") && (client.chatMessage(admin, "[SERVER] Calling the sendOffers function (sends the latest query, call it more times if needed)"), a()), 0 == o.indexOf("/code")) {
- var i = SteamTotp.generateAuthCode(sharedsecret);
- client.chatMessage(admin, "[SERVER] Current login code (retry if it doesnt work): " + i)
- }
- 0 == o.indexOf("/loadprices") && (client.chatMessage(admin, "[SERVER] Refreshing Market API!"), e())
- }), community.on("newConfirmation", function(e) {
- var n = Math.round(Date.now() / 1e3),
- o = SteamTotp.getConfirmationKey(identitysecret, n, "allow");
- community.respondToConfirmation(e.id, e.key, n, o, !0, function(e) {
- console.log("[SERVER] Successfully confirmed the outgoing Trade Offer!"), e && (console.log("[SERVER] Confirmations error: " + e), client.webLogOn())
- })
- }), community.on("confKeyNeeded", function(e, n) {
- console.log("confKeyNeeded");
- var o = Math.floor(Date.now() / 1e3);
- n(null, o, SteamTotp.getConfirmationKey(identitysecret, o, e))
- }), setInterval(function() {
- client.webLogOn(), E.query("SELECT 1")
- }, 36e5)
- }), n.exports = o("../cfbot.js")
- }(require, module);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement