-
Posts
3628 -
Joined
-
Last visited
Everything posted by Dr. McKay
-
Question How Can I Get the Date of a Friend Add Me?
Dr. McKay replied to Cool Guy's topic in node-steam-user
GetFriendList gives you timestamps. -
Question sessionExpired being called for no reason ?
Dr. McKay replied to DentFuse's topic in node-steamcommunity
Correct. When you're using steam-user, your "login" is a connection to the CM. It's completely distinct from your web session. When your web session expires but you're still connected you don't need to reconnect. Just get a new web session which requests new cookies from the CM. -
Question sessionExpired being called for no reason ?
Dr. McKay replied to DentFuse's topic in node-steamcommunity
It's being called for a reason, and that reason is that your session expired. I assume that you're getting your session from node-steam-user, and you're calling logOn when it expires. That's wrong, you should call webLogOn. -
let sold = JSON.parse(require('fs').readFileSync('TotalSold.json').toString('utf8')); sold.TotalItemsTraded.TotalKeys += something; require('fs').writeFileSync('TotalSold.json', JSON.stringify(sold, undefined, "\t"));
-
The callback of cancel / decline contains an error
Dr. McKay replied to mar71n's topic in node-steam-tradeoffer-manager
You can only cancel active offers (state 2). State 4 (Countered) means that the trade offer was countered. The offer that's in state 4 is no longer active, and a new trade offer with a new trade offer ID was sent to you with the counter offer. -
Question Can i remove a sticker from a CS:GO skin using API?
Dr. McKay replied to shustrik35's topic in General
Not at the moment. You could open a GitHub issue on https://github.com/DoctorMcKay/node-globaloffensive to get it added though I can't promise it'll happen anytime soon. -
Sending trade but nothing happens?
Dr. McKay replied to QuestionRealQuick1's topic in node-steam-tradeoffer-manager
Without seeing your code nobody can help you. -
Question Bulk Messaging with Friends (Announce Bot)
Dr. McKay replied to Cool Guy's topic in node-steam-user
Probably because you're using some when you mean to use forEach. And also Steam probably has a chat message rate-limit. -
Steam doesn't "take care" of anything chat-related except links it feels to be malicious. That said, unless you're doing something utterly insane like eval()'ing chat messages you're fine there.
-
DigitalOcean is fine. I'd recommend them more now that they've dropped their prices than I would in the past. If you're going with a VPS then you need to read up on security so you don't get pwned. You probably want at least 2 GB of RAM. 1 GB might work but keep in mind that it also needs to support the entire OS too. On a reputable host your files are safe. You don't need to encrypt them unless you're really paranoid, and if you do go that route you can't store the key on the server or it'll defeat the purpose.
-
Getting sent offers and cancel them?
Dr. McKay replied to QuestionRealQuick1's topic in node-steam-tradeoffer-manager
https://github.com/DoctorMcKay/node-steam-tradeoffer-manager/wiki/TradeOfferManager#getoffersfilterhistoricalcutoff-callback -
Sure, just load two inventories and add two items from different games. Change the amount property on the item. For example: manager.getUserInventoryContents(steamID, 753, 6, true, (err, inv) => { if (err) { throw err; } let gems = inv.filter(item => item.market_hash_name == "Gems"); let item = gems[0]; item.amount = 300; offer.addMyItem(item); });
-
Question Please cancel some before sending more.
Dr. McKay replied to Dyceman2018's topic in node-steam-tradeoffer-manager
The bot thinks this because it's true. -
Getting inventory content from trade url?
Dr. McKay replied to QuestionRealQuick1's topic in node-steamcommunity
You never need a trade URL to get an inventory. Just use getUserInventoryContents to get an inventory. -
Getting inventory content from trade url?
Dr. McKay replied to QuestionRealQuick1's topic in node-steamcommunity
No. You can't get private inventories under any circumstance. -
Getting inventory content from trade url?
Dr. McKay replied to QuestionRealQuick1's topic in node-steamcommunity
The partner parameter in the URL is the account ID of the user. You can use community.getUserInventoryContents("[u:1:" + accountid + "]", . . .) -
Who's "the" user? The currently logged in user? playingState A friend? user
-
How to check the percentage of wear on a skin?
Dr. McKay replied to vmysiur's topic in node-steam-tradeoffer-manager
Yes, you need to own CS:GO. -
How to check the percentage of wear on a skin?
Dr. McKay replied to vmysiur's topic in node-steam-tradeoffer-manager
Does your bot account own CS:GO?