From 7d6f7db9ad403adb9749ebbae1450ef1452ba141 Mon Sep 17 00:00:00 2001 From: lilyissillyyy Date: Tue, 23 Dec 2025 21:02:47 -0500 Subject: [PATCH] Fix error on jeopardy clue export --- package.json | 2 +- structures/JeopardyScrape.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index de9c9fb4..4eee204e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "159.3.1", + "version": "159.3.2", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": { diff --git a/structures/JeopardyScrape.js b/structures/JeopardyScrape.js index d733cf86..82f21964 100644 --- a/structures/JeopardyScrape.js +++ b/structures/JeopardyScrape.js @@ -1,7 +1,7 @@ const request = require('node-superfetch'); const cheerio = require('cheerio'); const fs = require('fs'); -const { JSON } = require('everything-json'); +const { JSON: eJSON } = require('everything-json'); const path = require('path'); const { checkFileExists } = require('../util/Util'); const rounds = ['jeopardy_round', 'double_jeopardy_round', 'final_jeopardy_round']; @@ -67,7 +67,7 @@ module.exports = class JeopardyScrape { async importData() { const read = await fs.promises.readFile(path.join(__dirname, '..', 'jeopardy.json'), { encoding: 'utf8' }); - const file = await JSON.parseAsync(read); + const file = await eJSON.parseAsync(read); if (typeof file !== 'object' || Array.isArray(file)) return null; if (!file.clues || !file.gameIDs || !file.seasons) return null; this.imported = true;