Jump to content


Photo

User Comment Limit

node.js node-steamcommunity

  • Please log in to reply
1 reply to this topic

#1 PonyExpress

PonyExpress

    Newbie

  • Member
  • Pip
  • 2 posts

Posted 08 July 2018 - 04:34 AM

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.
 

 



#2 PonyExpress

PonyExpress

    Newbie

  • Member
  • Pip
  • 2 posts

Posted 10 July 2018 - 09:58 AM

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.

  • Dr. McKay likes this





Also tagged with one or more of these keywords: node.js, node-steamcommunity

2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users