-
Posts
82 -
Joined
-
Last visited
Posts posted by TomYoki
-
-
How can you get item.tags for items in trades (if that's even possible) I tried
if (item.tags == "Trading Card")
but this obviously didn't work, can anyone help me form this correctly? (if it's possible)
-
Hello, I've been trying to make tf2 trading card bot, but I've run into an issue with item tags, what I'm trying to do is check if the item (in trade) has a tag "Trading Card". Can anyone help me with that?
-
So I was working on my code and I'm getting this response from console:
Verifying Login information
(node:2680) DeprecationWarning: Calling an asynchronous function without callback is deprecated.
(node:2680) DeprecationWarning: Calling an asynchronous function without callback is deprecated.
Here's the code:
var fs = require('fs'); var Steam = require('steam'); var SteamUser = require('steam-user'); var client = new SteamUser(); var SteamCommunity = require('steamcommunity'); var SteamTotp = require('steam-totp'); var community = new SteamCommunity(steamClient); var steamClient = new Steam.SteamClient(); var steamUser = new Steam.SteamUser(steamClient); var steamFriends = new Steam.SteamFriends(steamClient); var config; try { config = JSON.parse(fs.readFileSync('./config.json')); } catch (err) { console.log("Error: I couldn't parse config.json file"); console.log(err); process.exit(1); } console.log("Verifying Login information") client.setOption("promptSteamGuardCode", false) client.logOn({ "accountName": config.username, "password": config.password }); client.on("webSession", function (SteamID, cookies) { community.setCookies(cookies); SteamTotp.steamID = config.steamid; community.startConfirmationChecker(2500, config.identity_secret); }); client.on("LoggedOn", function (details) { client.setPerson(Steam.EPersonaState.Online) client.gamesPlayed(440) console.log("Logged on to steam!"); }); client.on("steamGuard", function (domain, callback, lastCodeWrong) { if (lastCodeWrong) { console.log("Last code used was wrong, Please try again."); } var shared_secret = config.shared_secret; callback(SteamTotp.generateAuthCode(shared_secret)); });
Please help :c
Item Type
in node-steam-tradeoffer-manager
Posted
Hello,I'd like to know how to correctly check item type for trading card. I tried:
offer.itemsToReceive.forEach(function(item) { if (item.type.includes("Trading Card"){ My code }
But this doesn't seem to work. Could anybody tell me how to do this correctly?