From 40adb8af355edc9199b91014aac30b5d1b8a5001 Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Fri, 18 Apr 2025 13:23:14 +0800 Subject: [PATCH] update lite, remove aetherroom dead site --- klite.embd | 68 ------------------------------------------------------ 1 file changed, 68 deletions(-) diff --git a/klite.embd b/klite.embd index 8313297db..19cd0c382 100644 --- a/klite.embd +++ b/klite.embd @@ -7775,74 +7775,6 @@ Current version indicated by LITEVER below. * }[]} **/ const scenario_sources = [ - // Aetherroom.club - { - name: "aetherroom.club", - urlParam: "aether", - inputBox: { - text: "Enter aetherroom.club prompt URL, or 4-digit prompt number", - placeholder: "https://aetherroom.club/1234" - }, - extraction: (userInput) => { - userInput = userInput.toLowerCase(); - if (userInput.includes("aetherroom.club/")) { - //is a url, extract the ID - userInput = userInput.replace("/api/","/"); - userInput = userInput.split("aetherroom.club/")[1]; - userInput = userInput.split("/")[0]; - userInput = userInput.split("#")[0]; - userInput = userInput.split("?")[0]; - } - if(!(userInput!="" && is_numeric(userInput) && userInput>0 && userInput<50000)) - throw new Error("User input is invalid\n\n Please ensure you have input a valid aetherroom.club URL or ID (e.g. https://aetherroom.club/1234 or just 1234)"); - return userInput; - }, - fetch: (userInput) => { - return fetch(apply_proxy_url("https://aetherroom.club/api/"+userInput,true)) - .then(x => x.json()) - .then(data => { - console.log(data); - temp_scenario = - { - "title":data.title?data.title:"", - "desc":data.description?data.description:"", - "opmode":2, - "adventure_context_mod":false, - "adventure_switch_mode":1, - "prompt":data.promptContent?data.promptContent:"", - "memory": data.memory?data.memory:"", - "authorsnote": data.authorsNote?data.authorsNote:"", - "worldinfo": [] - }; - if (data.worldInfos) - { - for (let w = 0; w < data.worldInfos.length; ++w) { - let keys = data.worldInfos[w].keys; - let entry = data.worldInfos[w].entry; - - let nwi = { - "key": (keys ? keys : ""), - "keysecondary": "", - "keyanti": "", - "content": (entry ? entry : ""), - "comment": "", - "folder": null, - "selective": false, - "constant": false, - "probability":100, - "wigroup":"", - "widisabled":false - }; - temp_scenario.worldinfo.push(nwi); - } - } - preview_temp_scenario(); - }).catch((error) => { - console.error(error); - throw new Error("Error: Selected scenario is invalid."); - }); - } - }, // Chub.ai { name: "characterhub.org / chub.ai",