mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix Jeopardy double-importing
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "155.0.1",
|
||||
"version": "155.0.2",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user