Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Suggestion Make it possible to talk in the shoutbox from the bot client

Joined
Nov 3, 2013
Messages
2,387
Title pretty much says it.

Would be nice for people who are babysitting their bots, keeps them busy.
 
Joined
Dec 10, 2014
Messages
119
I sit in mumble every now and again, if people were to be there id be on everyday. Could use the company when questing.
 
Joined
Nov 3, 2013
Messages
609
A bit ago, I was posting to the SB from my work computer (I didn't take the script when I left the company) via a terminal. It's all just a POST to a url with a cookie that keeps track of who the user is. Very easily implemented with cURL using the -b flag iirc. I'll see about pulling the post info from chrome once I get my laptop working again. I need something to do in my database class since I already know SQL lol.

Also, I went on the mumble once it is was void of all users :(
 
Mod Automation
Joined
Jul 26, 2013
Messages
3,046
A bit ago, I was posting to the SB from my work computer (I didn't take the script when I left the company) via a terminal. It's all just a POST to a url with a cookie that keeps track of who the user is. Very easily implemented with cURL using the -b flag iirc. I'll see about pulling the post info from chrome once I get my laptop working again. I need something to do in my database class since I already know SQL lol.

Also, I went on the mumble once it is was void of all users :(
That sounds awesome. Should be easy to implement. I can send you Taigachat files if you want help, but "reverse engineering" the protocol should be a cake walk for you.
 
Joined
Nov 3, 2013
Messages
609
To post something:
curl 'https://www.runemate.com/community/taigachat/post.json' -H 'origin: https://www.runemate.com' -H 'x-ajax-referer: https://www.runemate.com/community/' -H 'accept-encoding: gzip, deflate' -H 'accept-language: en-US,en;q=0.8' -H 'x-requested-with: XMLHttpRequest' -H 'cookie: [Removed so you fucks can't post things from my account]' -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36' -H 'content-type: application/x-www-form-urlencoded; charset=UTF-8' -H 'accept: application/json, text/javascript, */*; q=0.01' -H 'referer: https://www.runemate.com/community/' --data 'message=Test+2&sidebar=1&lastrefresh=47131&color=DF0900&room=1&_xfRequestUri=%2Fcommunity%2F&_xfNoRedirect=1&_xfToken=[removing this token too since I think it is authed to my account]&_xfResponseType=json' --compressed

Obtaining the cookie can be be a bit difficult via curl, but it involves posting to the login page for the forums and saving that to a cookie file using -c.

And this is how to read the chatbox:
curl 'https://www.runemate.com/community/data/taigachat/messagesmini.html?1421354162' -H 'x-ajax-referer: https://www.runemate.com/community/' -H 'accept-encoding: gzip, deflate, sdch' -H 'x-requested-with: XMLHttpRequest' -H 'accept-language: en-US,en;q=0.8' -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36' -H 'accept: application/json, text/javascript, */*; q=0.01' -H 'referer: https://www.runemate.com/community/' -H 'cookie: [Removed so you fucks can't post things from my account]' --compressed

These curl commands were actually generated by chrome (in the dev panel go to network and and right click on a request to get the curl command). These should be edited a bit though to remove the user agent and such so that is all set by curl. Also things like the referer can probably be removed, and cookies should be implemented using the -b flag instead of hardcoding them in the request data. That's how I made my mini chat client, wish I had saved it.

Edit: I think this might be a bit easier to work with:
curl 'https://www.runemate.com/community/taigachat/post.json' -b 'cookie-file' --data 'message=[Your message here, make sure it's url encoded]&sidebar=1&lastrefresh=47131&color=DF0900&room=1&_xfRequestUri=%2Fcommunity%2F&_xfNoRedirect=1&_xfToken=[removing this token too since I think it is authed to my account]&_xfResponseType=json' --compressed

curl 'https://www.runemate.com/community/data/taigachat/messagesmini.html?[I think current posix time goes here, can't remember though]' -b 'cookie-file' --compressed

Check out the cUrl man page, it's quite extensive: http://curl.haxx.se/docs/manpage.html
 
Last edited:
Top