Jump to content


Photo

Check what was sent to user

node.js node-steam-user

  • Please log in to reply
2 replies to this topic

#1 PonyExpress

PonyExpress

    Member

  • Member
  • PipPip
  • 28 posts

Posted 31 January 2019 - 04:44 PM

We can send a random number using /random

client.chatMessage(SID, "/random 100");

 

But is there a way to find out the result?



#2 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 2,111 posts

Posted 31 January 2019 - 09:24 PM

If you use the new client.chat.friendMessage method, the callback or promise response will include modified_message, which for a /random message will be something like:

[random min="1" max="1234" result="1095"][/random]

v4.1 will parse this BBCode for you, but until that's released you'll need to parse it yourself.


  • PonyExpress likes this

#3 PonyExpress

PonyExpress

    Member

  • Member
  • PipPip
  • 28 posts

Posted 01 February 2019 - 03:54 AM

Thanks for the answer. This is what I was looking for.







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

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users