built in the scripts since gh doesn't want to build the site
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
async function postEmbed() {
|
||||
const link = document.getElementById("cliplink").value
|
||||
console.log('Link:', link)
|
||||
const webhook = document.getElementById("webhookURL").value
|
||||
console.log('Webhook:', webhook)
|
||||
const caption = document.getElementById("caption").value
|
||||
console.log('Caption:', caption)
|
||||
const username = document.getElementById("medalUsername").value
|
||||
console.log('Username:', username)
|
||||
|
||||
const { response } = await fetch(`https://mcwapi.herokuapp.com/clip-check?clipLink=${link}&webhookURL=${webhook}&medalUsername=${username}&caption=${caption}`).then(response => response.json());
|
||||
|
||||
window.location.replace("https://awexxx.xyz/mcw?status=success");
|
||||
|
||||
console.log(response);
|
||||
}
|
||||
Reference in New Issue
Block a user