Cirga5 Posted June 2, 2023 Share Posted June 2, 2023 So i'm looking to make a MCC remake, I was wondering how to send variables from Skript to my website using Reqn. Does anyone know how to do it or some code for it? Thanks! Cirga5 (BTW the documentation is here, I don't know how to read that stuff though... https://github.com/btk5h/reqn) Link to comment Share on other sites More sharing options...
Cirga5 Posted June 2, 2023 Author Share Posted June 2, 2023 I got some code, Im using SkriptWebAPI and idk if this is reqn too. ChatGPT made it and I modified it to the docs. Its not receiving though..: command /resetvar: trigger: set {variable1} to 0 command /addvar: trigger: add 1 to {variable1} broadcast {variable1} command /sendData: trigger: set {_url} to "https://html-skript-http-get-test.cirga5twitch.repl.co" # Replace with your actual endpoint URL set {_header} to "Content-Type: application/json" set {_body} to "{ 'variable1': '%{variable1}%', 'variable2': '%{variable2}%', 'variable3': '%{variable3}%', 'variable4': '%{variable4}%' }" send post request to {_url} with header {_header} and body {_body} broadcast "Done" Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now