diff --git a/package.json b/package.json index 3ff2e07d..b6017b06 100644 --- a/package.json +++ b/package.json @@ -50,6 +50,7 @@ "didyoumean2": "^7.0.4", "discord.js": "^14.22.1", "emoji-regex": "^10.5.0", + "everything-json": "^1.2.1", "fen-validator": "^2.0.1", "font-finder": "^1.1.0", "gm": "^1.25.1", @@ -71,7 +72,6 @@ "parse-domain": "^8.2.2", "pokersolver": "^2.1.4", "qr": "^0.5.1", - "raji": "^0.1.6", "random-js": "^2.1.0", "sagiri": "^4.3.0", "semver": "^7.7.2", diff --git a/structures/JeopardyScrape.js b/structures/JeopardyScrape.js index 6547a481..28425d26 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 raji = require('raji'); +const { JSON } = 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 raji.parse(read); + const file = await JSON.parseAsync(read); if (typeof file !== 'object' || Array.isArray(file)) return null; if (!file.clues || !file.gameIDs || !file.seasons) return null; for (const season of file.seasons) {