Search results

  1. harbarspamsux

    Programming Getting replay of a match using a bot

    Late update, but I fixed it! First, you have to send the following message to the websocket: `${this.battle}|/uploadreplay`, replacing `this.battle` with the battle id. Next, you have to look for the message that starts with `|queryresponse|savereplay` then parse the JSON, and run the following...
  2. harbarspamsux

    Programming Getting replay of a match using a bot

    I have looked further into it, and tried POST requesting using Postman to this URL...
  3. harbarspamsux

    Programming Getting replay of a match using a bot

    Oh forgot to add before lol: idk if you didn't see, but the POSTing doesn't actually work, for some reason. I just need to know what to POST exactly so I can do it right. I tried looking on Github for answers to no avail
  4. harbarspamsux

    Programming Getting replay of a match using a bot

    The bot sends `/savereplay` to the server in line 329 of `showdown.js` in that repo I linked above. Then, it looks for the response on line 206 of the same file and calls the `requestreplay` method (this method is not in the master branch of the git repo yet, that's why you don't see it). This...
  5. harbarspamsux

    Programming Getting replay of a match using a bot

    The full code is here (the replay code itself is in showdown.js): https://github.com/PorygonBot/bot
  6. harbarspamsux

    Programming Getting replay of a match using a bot

    Oh oof, it went offline. Lemme post my code directly then (and yes, I'm parsing the response to /savereplay in another part of the code). async requestReplay(data) { let replayPostURL = "https://play.pokemonshowdown.com/~~showdown/action.php?act=uploadreplay"; let replay =...
  7. harbarspamsux

    Programming Getting replay of a match using a bot

    Hi friends. I'm making a bot that can track K/D in a live battle, but that's not what this is about. I'm trying to get the bot to automatically save the replay of the battle after the match is done. However, I can't seem to get the uploading to work properly. This is the code...
Top