diff --git a/package.json b/package.json index 79731e7c..069d8cf5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "155.3.0", + "version": "155.3.1", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": { diff --git a/structures/JeopardyScrape.js b/structures/JeopardyScrape.js index 7ae92c03..d6e7e632 100644 --- a/structures/JeopardyScrape.js +++ b/structures/JeopardyScrape.js @@ -10,6 +10,7 @@ module.exports = class JeopardyScrape { this.clues = []; this.gameIDs = []; this.seasons = []; + this.imported = false; } async fetchSeasons() { @@ -83,6 +84,7 @@ module.exports = class JeopardyScrape { if (this.clues.includes(clue)) continue; this.clues.push(clue); } + this.imported = true; return file; } @@ -97,8 +99,10 @@ module.exports = class JeopardyScrape { } async checkForUpdates() { - const fileExists = await checkFileExists(path.join(__dirname, '..', 'jeopardy.json')); - if (fileExists) this.importData(); + if (!this.imported) { + const fileExists = await checkFileExists(path.join(__dirname, '..', 'jeopardy.json')); + if (fileExists) this.importData(); + } const cluesBefore = this.clues.length; const latestSeason = this.seasons[this.seasons.length - 1]; const seasons = await this.fetchSeasons();