PonyExpress Posted January 31, 2019 Report Share Posted January 31, 2019 We can send a random number using /randomclient.chatMessage(SID, "/random 100"); But is there a way to find out the result? Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted February 1, 2019 Report Share Posted February 1, 2019 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 1 Quote Link to comment Share on other sites More sharing options...
PonyExpress Posted February 1, 2019 Author Report Share Posted February 1, 2019 Thanks for the answer. This is what I was looking for. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.