
PonyExpress
Member-
Posts
61 -
Joined
-
Last visited
Everything posted by PonyExpress
-
Thanks for the answer. This is what I was looking for.
-
We can send a random number using /random client.chatMessage(SID, "/random 100"); But is there a way to find out the result?
-
BREAKING CHANGES: steam-user v4 now available on npm
PonyExpress replied to Dr. McKay's topic in node-steam-user
Since version 4, I often get a error: fs.js:115 throw err; ^ Error: EMFILE: too many open files, open 'C:\name\node_modules\@doctormckay\stats-reporter\package.json'Could this be due to the fact that I use 'graceful-fs' instead 'fs'? -
BREAKING CHANGES: steam-user v4 now available on npm
PonyExpress replied to Dr. McKay's topic in node-steam-user
Just wondering: is there any way to check the number that the user got using /Random? bot receives message from <sid>: test bot receives message from <sid>: [random min="1" max="1000" result="872"][/random] // here I am sending "/Random 1000" bot receives message from <sid>: [random min="1" max="1000" result="1000"][/random] // here I just send the string "[random min="1" max="1000" result="1000"][/random]" I look forward to when steam-user v4 will be able to send pictures, links, emoticons, etc. -
client.on("webSession", (sessionID, cookies) => { for (let i = 0; i < Object.keys(client.myFriends).length; i++) { if (client.myFriends[Object.keys(client.myFriends)[i]] == 2) { client.addFriend(Object.keys(client.myFriends)[i]); } } });
-
How to change ERR language?
PonyExpress replied to PonyExpress's topic in node-steam-tradeoffer-manager
Thank you very much. Although it was a bit strange for me to see messages not in English only after a year of use. -
I'm not sure about steam-tradeoffer-manager, maybe my problem is related to steam-user.I always received the text of errors (ERR) in English. But after launching a third-party program, now i get them in another language. let client = new SteamUser(), manager = new TradeOfferManager({ "steam": client, "language": "en" }), community = new SteamCommunity(); //... let t = manager.createOffer(SID); t.getUserDetails((ERR, ME, THEM) => { if (ERR) { console.log("cant trade: " + ERR); // <<< not in English } else if (ME.escrowDays == 0 && THEM.escrowDays == 0) { console.log("all good"); } else { console.log("escrowDays"); } }); How can I return the language to English? (Global) And can I get errors in a specific language if need?
-
Thanks. But even using v4, client.chatMessage(tsid, "https://help.steampowered.com/en/accountdata/SteamLoginHistory");still gives a simple text link. other (images, emoticons, /pre /quote /code etc.) don't work either
-
How to install and start using v4? I downloaded v4.zip archive,extracted folder "node-steam-user-4" in my "node_modules" and changed SteamUser = require("steam-user"), to SteamUser = require("node-steam-user-4"), When I start, I get:Error: Cannot find module 'protobufjs/minimal'
-
I found the answer myself:Limit always = 1000, but when using any emoticon, need to add +2: I will leave examples to make this clearer: 12345=5 aBcDe=5 :::::=5 :rc:=4+2 :tumble:=8+2 :bumble:=8 (because it's not a emoticon, it does not exist on Steam)It is absolutely not important whether you have emoticons in your inventory or not. It is important only whether they exist in Steam or not.
-
Hello! I'm developing a bot, one function of which is posting EmoticomArt in User profile: https://steamcommunity.com/id/7Pony/ You can see examples in the comments section. I ran into a problem that I myself can not solve: Comments posted by a bot are always long. Plus, there should be some stock, designed for additional text. // USER - receiver; POSTCARD - EmoticonArt; SPLITMESSAGE - optional, comments or any other text USER.comment(POSTCARD + " \n " + SPLITMESSAGE, (ERR) => { if (ERR) { console.log("fail: " + ERR); } else { console.log("done!"); } }); Everything would be fairly easy if the limit was always equal 1000 symbols.Bot can post: //989: Postcard=":::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::" //1000: "aAaAaAaAaAaAa…" etc.But try to Post comment with emoticons: //660, result = done! Postcard":rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg:" //668, result = error Postcard+":rg::rg:" //or 668, error Postcard+"aAaAaAaAa" //More examples: // ~850, OK: ":greentwist::greentwist::spikeball::spikeball::spikeball::spikeball::spikeball::greentwist::greentwist: \n :greentwist::spikeball::Hackingart::Hackingart::spikeball::Hackingart::Hackingart::spikeball::greentwist: \n :spikeball::Hackingart::Hackingart::Hackingart::Hackingart::Hackingart::Hackingart::Hackingart::spikeball: \n :spikeball::Hackingart::Hackingart::Hackingart::Hackingart::Hackingart::Hackingart::Hackingart::spikeball: \n :spikeball::spikeball::Hackingart::Hackingart::Hackingart::Hackingart::Hackingart::spikeball::spikeball: \n :spikeball::spikeball::spikeball::Hackingart::Hackingart::Hackingart::spikeball::spikeball::spikeball: \n :greentwist::spikeball::spikeball::spikeball::Hackingart::spikeball::spikeball::spikeball::greentwist: \n :greentwist::greentwist::spikeball::spikeball::spikeball::spikeball::spikeball::greentwist::greentwist:" // ~760, Eroor": ":mundodanger::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::mundodanger: \n :rg::wbox::SNF4::SNF4::SNF4::SNF4::SNF4::wbox::SNF4::SNF4::SNF4::SNF4::SNF4::wbox: \n :rg::SNF4::wbox::SNF4::SNF2::SNF5::SNF4::wbox::SNF4::SNF1::SNF4::SNF4::wbox::SNF4: \n :rg::wbox::SNF4::wbox::SNF4::SNF4::SNF4::wbox::SNF4::SNF4::SNF4::wbox::SNF4::wbox: \n :rg::wbox::SNF2::wbox::SNF4::SNF4::wbox::wbox::wbox::SNF4::SNF4::wbox::SNF1::wbox: \n :rg::wbox::SNF4::wbox::SNF4::SNF2::SNF4::wbox::SNF4::SNF1::SNF4::wbox::SNF4::wbox: \n :rg::SNF4::wbox::SNF4::SNF4::SNF4::SNF4::wbox::SNF4::SNF4::SNF4::SNF4::wbox::SNF4: \n :rg::wbox::SNF4::SNF4::SNF2::SNF4::SNF4::wbox::SNF4::SNF4::SNF4::SNF1::SNF4::wbox: \n :mundodanger::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::rg::mundodanger:"Thus, the length of the comment with emoticons can be from 660 to ~900-1000 symbols.I also thought that there is a limit to emoticons, but here I did not find any logic.