From 6f9e2e5b72da172e9ed4f6d1344487542fe251ac Mon Sep 17 00:00:00 2001 From: lolcat Date: Sat, 4 Jan 2025 23:13:13 -0500 Subject: [PATCH] xeno bugfix --- client.js | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/client.js b/client.js index 04891cb..37ab8c2 100644 --- a/client.js +++ b/client.js @@ -16,7 +16,7 @@ const mineflayer = require("mineflayer"); const mc_bridge_enabled = false; const irc_bridge_enabled = true; const instance = "https://4get.lumaeris.com"; -var scraper = "ddg"; +var scraper = "google_cse"; const mc_options = { "host": "deek.chat", @@ -647,6 +647,7 @@ init_irc(); async function fetch_xeno(recording, index, msg){ index--; + console.log(recording[index]); var filereq = await fetch( recording[index].file, @@ -1448,9 +1449,31 @@ deek.on("message", async function(msg, user){ global_page = 1; is_pp_xeno = true; - results_cache = res_get.recordings; - await fetch_xeno(res_get.recordings, 1, msg); + // filter out restricted results + results_cache = []; + + for(var k=0; k