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

Discussion in 'Client & Site Suggestions' started by EvilCabbage, Dec 19, 2014.

  1. Title pretty much says it.

    Would be nice for people who are babysitting their bots, keeps them busy.
     
  2. more lag in the client huray
     
  3. I must say I didn't think about that.
     
  4. more memory usage , which already is insanely high
     
  5. It would make almost no difference.
     
  6. Make it an option, nothing wrong with it right?
     
  7. Implementing an IRC into the client could make it work.
     
  8. Implementing the shoutbox would make it even better. ;)
    This.
     
    Falixus likes this.
  9. If you want to talk, just join the mumble chat.
     
  10. Are there more frequent people in there now?
     
  11. Unfortunately not. Mumble has been all but abandoned for now. :(
     
  12. Damn, I used sit in there for a bit but barely anyone connected to it :(
     
  13. I sit in mumble every now and again, if people were to be there id be on everyday. Could use the company when questing.
     
  14. A bit ago, I was posting to the SB from my work computer (I didn't take the script bot 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 :(
     
  15. 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.
     
  16. 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
     
    #16 Exia, Jan 15, 2015
    Last edited: Jan 15, 2015

Share This Page

Loading...