From 4b2231bc11995e21786f296e76c8050d0272d2c6 Mon Sep 17 00:00:00 2001 From: lilyissillyyy Date: Mon, 1 Sep 2025 00:12:36 -0400 Subject: [PATCH] Fix Jeopardy double-importing --- package.json | 2 +- structures/JeopardyScrape.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 06628667..d91712d6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "155.0.1", + "version": "155.0.2", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": { diff --git a/structures/JeopardyScrape.js b/structures/JeopardyScrape.js index c56c8858..7ae92c03 100644 --- a/structures/JeopardyScrape.js +++ b/structures/JeopardyScrape.js @@ -70,14 +70,17 @@ module.exports = class JeopardyScrape { if (!file.clues || !file.gameIDs || !file.seasons) return null; for (const season of file.seasons) { if (typeof season !== 'string') continue; + if (this.seasons.includes(season)) continue; this.seasons.push(season); } for (const gameID of file.gameIDs) { if (typeof gameID !== 'string') continue; + if (this.gameIDs.includes(gameID)) continue; this.gameIDs.push(gameID); } for (const clue of file.clues) { if (typeof clue !== 'string') continue; + if (this.clues.includes(clue)) continue; this.clues.push(clue); } return file;