三级目录

This commit is contained in:
辉鸭蛋
2024-10-14 22:43:49 +08:00
parent 252bc48ee6
commit 081496493c
8 changed files with 149 additions and 140 deletions

View File

@@ -55,10 +55,14 @@ function extractInfoFromJSFolder(folderPath) {
function extractInfoFromPathingFile(filePath, parentFolders) {
const content = JSON.parse(fs.readFileSync(filePath, 'utf8'));
let tags = parentFolders.slice(2) // 从第三个元素开始,跳过 'pathing' 和下一级目录
.map(tag => tag.split('@')[0]) // 取@符号前面的数据
.filter((tag, index, self) => self.indexOf(tag) === index); // 去重
return {
author: content.info && content.info.author ? content.info.author : '',
description: convertNewlines(content.info && content.info.description ? content.info.description : ''),
tags: parentFolders.slice(2) // 从第三个元素开始,跳过 'pathing' 和下一级目录
tags: tags
};
}

283
repo.json
View File

@@ -1,5 +1,5 @@
{
"time": "20241014223726",
"time": "20241014224304",
"url": "https://github.com/babalae/bettergi-scripts-list/archive/refs/heads/main.zip",
"file": "repo.json",
"indexes": [
@@ -699,77 +699,77 @@
"tags": [
"幽光星星"
]
}
]
},
{
"name": "幽光星星(新)",
"type": "directory",
"children": [
{
"name": "幽光星星1.json",
"type": "file",
"hash": "420250dc219c79bd34cdfd2e04143c0173cfbca5",
"version": "420250d",
"author": "jbcaaa",
"description": "",
"tags": [
"幽光星星(新)"
]
},
{
"name": "幽光星星2.json",
"type": "file",
"hash": "18ad79c2ff4cb224a0b0af1cdd2f08f9cde5c67a",
"version": "18ad79c",
"author": "jbcaaa",
"description": "",
"tags": [
"幽光星星(新)"
]
},
{
"name": "幽光星星3.json",
"type": "file",
"hash": "503518a4e5ec1adc8b7d9584397edec766a702fb",
"version": "503518a",
"author": "jbcaaa",
"description": "",
"tags": [
"幽光星星(新)"
]
},
{
"name": "幽光星星4.json",
"type": "file",
"hash": "2632bf6773fd1ed4cc9023190d5e575cce3b5f78",
"version": "2632bf6",
"author": "jbcaaa",
"description": "",
"tags": [
"幽光星星(新)"
]
},
{
"name": "幽光星星5.json",
"type": "file",
"hash": "82239264b44e78f823f0e256cce18bfd60030410",
"version": "8223926",
"author": "jbcaaa",
"description": "",
"tags": [
"幽光星星(新)"
]
},
{
"name": "幽光星星6.json",
"type": "file",
"hash": "9c2b66a12b007c17a0f964e9c378f82194cedf3f",
"version": "9c2b66a",
"author": "jbcaaa",
"description": "",
"tags": [
"幽光星星(新)"
"name": "幽光星星@jbcaaa",
"type": "directory",
"children": [
{
"name": "幽光星星1.json",
"type": "file",
"hash": "ad1cdee5dd1e8d8d5c8afe11db46b3361afa33f2",
"version": "ad1cdee",
"author": "jbcaaa",
"description": "",
"tags": [
"幽光星星"
]
},
{
"name": "幽光星星2.json",
"type": "file",
"hash": "0421974d4d94b114c0d59be85833a566d4661c66",
"version": "0421974",
"author": "jbcaaa",
"description": "",
"tags": [
"幽光星星"
]
},
{
"name": "幽光星星3.json",
"type": "file",
"hash": "02ad3ae5ebd95c7515ee3610f61b1d3786917eff",
"version": "02ad3ae",
"author": "jbcaaa",
"description": "",
"tags": [
"幽光星星"
]
},
{
"name": "幽光星星4.json",
"type": "file",
"hash": "4d366948ffa6c7a45257ca9dfc4aba73bb68df47",
"version": "4d36694",
"author": "jbcaaa",
"description": "",
"tags": [
"幽光星星"
]
},
{
"name": "幽光星星5.json",
"type": "file",
"hash": "e5318b7802bd8c91d8da839c0a0af606ff8f9580",
"version": "e5318b7",
"author": "jbcaaa",
"description": "",
"tags": [
"幽光星星"
]
},
{
"name": "幽光星星6.json",
"type": "file",
"hash": "8b1dd2d820cf08d56b7d6d371f4ea667061ab850",
"version": "8b1dd2d",
"author": "jbcaaa",
"description": "",
"tags": [
"幽光星星"
]
}
]
}
]
@@ -2972,7 +2972,7 @@
{
"name": "AutoCrystalfly",
"type": "directory",
"hash": "e31dd54566de80b0f5e5d0bd646d2589e15db2bd",
"hash": "22e477c14c3af73d45728ec3c5ad77cf826cc640",
"version": "1.1",
"author": "huiyadanli",
"description": "自动采集晶蝶(枫丹)~|~BetterGI自带脚本自动采集离传送点较近的晶蝶。请在队伍中务必携带早柚/瑶瑶,使用成男/成女角色。并保证所有传送点都已经激活!",
@@ -2981,7 +2981,7 @@
{
"name": "AutoDomain",
"type": "directory",
"hash": "ce6bf4513243c391c4026c49b243cf0376417dc2",
"hash": "b62daa1290028e5ef9c4581586fb2456d1a644e5",
"version": "1.0",
"author": "huiyadanli",
"description": "传送并自动秘境~|~BetterGI自带脚本用于传送后并执行自动秘境",
@@ -3008,7 +3008,7 @@
{
"name": "JustTp",
"type": "directory",
"hash": "0ea9503552d087928fc0517b2267d882f04fd08e",
"hash": "72391915b574bf39e892f61f2880bf7cd4f49611",
"version": "1.0",
"author": "huiyadanli",
"description": "只是传送一下~|~BetterGI自带脚本只用于传送。方便在调度器配合键鼠脚本使用",
@@ -3124,8 +3124,8 @@
{
"name": "仆人纯火.txt",
"type": "file",
"hash": "c56489e41ab4230c10d1cda9817957aae4357f72",
"version": "c56489e",
"hash": "ed9ea9f3d86d1fac9ba11f4026e877df9e08471f",
"version": "ed9ea9f",
"author": "佚名",
"description": "",
"tags": [
@@ -3138,8 +3138,8 @@
{
"name": "仆北夏托.txt",
"type": "file",
"hash": "99fb4f51d3624b4eb300c778f5972b3ff315513a",
"version": "99fb4f5",
"hash": "481aae168a7a11f4f0f4ec0ee3f277ee9c31df4e",
"version": "481aae1",
"author": "佚名",
"description": "北斗托马需要堆充能,自动轴为了更稳降低了输出,后置护盾容易被打断,不适用于开局就多动症的敌人(比如谐律本)",
"tags": [
@@ -3152,8 +3152,8 @@
{
"name": "仆钟班希.txt",
"type": "file",
"hash": "7a68dfe7435149329b10721b494e1c4b50ef4eaf",
"version": "7a68dfe",
"hash": "7677b2eb9cbe0475c0ccc7fe138119517fbbed61",
"version": "7677b2e",
"author": "黎普Lips",
"description": "推荐配队(钟离/夜兰/班尼特/万叶/希诺宁)五选三+仆人,希诺宁入队注意队内需要有至少非岩非风两种元素,否则无减抗无奶",
"tags": [
@@ -3210,8 +3210,8 @@
{
"name": "岩娜维娅.txt",
"type": "file",
"hash": "a5518af6fd13722fec13537ccc6dc73d1841ce4d",
"version": "a5518af",
"hash": "a35395910caf82c16bb45bb3a7bc2050ce2652fc",
"version": "a353959",
"author": "爱司基模人",
"description": "",
"tags": [
@@ -3224,8 +3224,8 @@
{
"name": "影夜白芙.txt",
"type": "file",
"hash": "29929039f6600077bdc1daf74ffd436e681b4472",
"version": "2992903",
"hash": "42ef910159f5f248f82b618b4c05f9b1f93744d3",
"version": "42ef910",
"author": "佚名",
"description": "",
"tags": [
@@ -3238,8 +3238,8 @@
{
"name": "心海队.txt",
"type": "file",
"hash": "0e0e5aab757ebcce313920d2e4ba25f0f070509c",
"version": "0e0e5aa",
"hash": "bf0bd098b1d789beb8c5332e7010f9c6e54afc7d",
"version": "bf0bd09",
"author": "佚名",
"description": "",
"tags": [
@@ -3252,8 +3252,8 @@
{
"name": "提八(空A重).txt",
"type": "file",
"hash": "f13d393e01e29e6a3509b42f48174afad0545cd9",
"version": "f13d393",
"hash": "5c2655eb4ebda63c5050af39d80c71f644ff540b",
"version": "5c2655e",
"author": "爱司基模人",
"description": "",
"tags": [
@@ -3266,8 +3266,8 @@
{
"name": "提八.txt",
"type": "file",
"hash": "43cf5ea1ac76a6ddf0f31f2cee13ec0cdf04f3a4",
"version": "43cf5ea",
"hash": "5cb069db04895695b6c828bed1f9b4bb51e8b8ad",
"version": "5cb069d",
"author": "爱司基模人",
"description": "",
"tags": [
@@ -3280,8 +3280,8 @@
{
"name": "散兵[请看文件内说明].txt",
"type": "file",
"hash": "2736c2ae2e1304df6cd99d44ed929ae9e90f9399",
"version": "2736c2a",
"hash": "2edd6804f44f208c9b19390d13e22d0a2b238576",
"version": "2edd680",
"author": "佚名",
"description": "推荐配队:\n1钟离 夜班行云四选二 散兵\n2钟离 珐露珊 四琴 散兵 琴不识别,四琴用不了 可以试试加个q收尾\n3钟离 芙宁娜 四琴 散兵 琴不识别,四琴用不了\n4莱依拉北斗 行秋 云珐夜班 散兵",
"tags": [
@@ -3298,8 +3298,8 @@
{
"name": "火胡桃非零命.txt",
"type": "file",
"hash": "9945f986581a05c32c2e543ee2c33362356b0822",
"version": "9945f98",
"hash": "01617f40128f681bf7a0e394752a0ecb13c313f3",
"version": "01617f4",
"author": "爱司基模人",
"description": "",
"tags": [
@@ -3314,8 +3314,8 @@
{
"name": "神鹤万心(无法冲刺打物理).txt",
"type": "file",
"hash": "51418af2f9f764a45626fa7d1fe80237f848d9e8",
"version": "51418af",
"hash": "2a6cb9f20bfbef54bcb95d58529d9b3c9659e867",
"version": "2a6cb9f",
"author": "爱司基模人",
"description": "",
"tags": [
@@ -3328,8 +3328,8 @@
{
"name": "胡桃(无法取消后摇迷之锁敌会掉沟).txt",
"type": "file",
"hash": "cfaca4f94b48ea666d43476a9f4fab2bdb275fb1",
"version": "cfaca4f",
"hash": "05181644d888763aad2b0cbdfc416e40e662cd2e",
"version": "0518164",
"author": "爱司基模人",
"description": "",
"tags": [
@@ -3370,8 +3370,8 @@
{
"name": "钟仆夜坎.txt",
"type": "file",
"hash": "30d695b8f343f01938c154f380dbb0bffd2bba90",
"version": "30d695b",
"hash": "1e09e2202893ec9ace6539dd33b326a65a373e0f",
"version": "1e09e22",
"author": "佚名",
"description": "缺点为无聚怪手段,双水角色需要堆一定的充能效率,优点是不画地为牢",
"tags": [
@@ -3384,8 +3384,8 @@
{
"name": "钟仆娜云.txt",
"type": "file",
"hash": "0b5de5823bd652baf375fbf5b2b335f667ccec4f",
"version": "0b5de58",
"hash": "1eaae27e5aa5d56de4792bfbf79cb193d29e1afa",
"version": "1eaae27",
"author": "佚名",
"description": "双c配置三岩保障云堇有足够充能缺点是伤害较低",
"tags": [
@@ -3482,8 +3482,8 @@
{
"name": "钟雷芙瑶.txt",
"type": "file",
"hash": "1cb2a1c2dfe0cf8f78201c7b2bb5aa7eb94de224",
"version": "1cb2a1c",
"hash": "aa6d770fc10518f61416ce762c25e1a3a9286983",
"version": "aa6d770",
"author": "绘星痕",
"description": "",
"tags": [
@@ -3526,8 +3526,8 @@
{
"name": "风散兵.txt",
"type": "file",
"hash": "60cc0d038e77be37b4daef10682db701bde6278f",
"version": "60cc0d0",
"hash": "ffd6406e393748e8c693f45ad0cfcc7e39293683",
"version": "ffd6406",
"author": "爱司基模人",
"description": "",
"tags": [
@@ -3551,8 +3551,8 @@
{
"name": "刻晴雷神甘雨.txt",
"type": "file",
"hash": "21b3c7832fd851c8581d185c41f8bb1f3af5259d",
"version": "21b3c78",
"hash": "ef298f68e21dee52f55d39f2b9a405ffaa236542",
"version": "ef298f6",
"author": "huiyadanli",
"description": "",
"tags": [
@@ -3568,8 +3568,8 @@
{
"name": "[惊喜牌组][枫丹]赫茉莎.txt",
"type": "file",
"hash": "c39f343bf6072d42e3583951f134e0b5ff5bffc6",
"version": "c39f343",
"hash": "84b447ddf295c675d9dea9f2cc58f07a4c099b44",
"version": "84b447d",
"author": "Womsxd",
"description": "",
"tags": [
@@ -3582,8 +3582,8 @@
{
"name": "[惊喜牌组][璃月]东东.txt",
"type": "file",
"hash": "4f1c2b549594ed00e67eb6fa509e9564927ead73",
"version": "4f1c2b5",
"hash": "10b50e397f642fae4efa058c89b91fe2e488f6e5",
"version": "10b50e3",
"author": "Womsxd",
"description": "",
"tags": [
@@ -3596,8 +3596,8 @@
{
"name": "[惊喜牌组][璃月]黄衫.txt",
"type": "file",
"hash": "44070dc486e8ecdbe91c8e6c56fb45049b64c887",
"version": "44070dc",
"hash": "d9bdbad6c51897ce0455dcf439d9c763f67c3fb8",
"version": "d9bdbad",
"author": "Womsxd",
"description": "",
"tags": [
@@ -3610,8 +3610,8 @@
{
"name": "[惊喜牌组][须弥]巴哈拉克.txt",
"type": "file",
"hash": "6cd04adca1811d8d1c32e946241c9b9638dbb61b",
"version": "6cd04ad",
"hash": "e8a7be2303b40bb7dc1475d2c41b1ccf046e2d21",
"version": "e8a7be2",
"author": "Womsxd",
"description": "",
"tags": [
@@ -3624,8 +3624,8 @@
{
"name": "[惊喜牌组][须弥]马鲁夫.txt",
"type": "file",
"hash": "85c92fd1ea34ee9d388311fdfe0739ea9427e284",
"version": "85c92fd",
"hash": "208bb4f7989015dde7a18b1c53ca325c5df627e5",
"version": "208bb4f",
"author": "Womsxd",
"description": "",
"tags": [
@@ -3638,8 +3638,8 @@
{
"name": "[惊喜牌组][龙脊雪山]史蒂文斯.txt",
"type": "file",
"hash": "b135d847f847f5311586ad5235da1ab9914c3ca5",
"version": "b135d84",
"hash": "b13c01ede19c5ef4a30fe44b02572e0bc8455478",
"version": "b13c01e",
"author": "Womsxd",
"description": "",
"tags": [
@@ -3652,8 +3652,8 @@
{
"name": "[惊喜牌组][龙脊雪山]玉霞.txt",
"type": "file",
"hash": "185c13b548a8a45b10fab9beb613ebb97b6a16ee",
"version": "185c13b",
"hash": "a7f81492654c30fd2ab6c7507d708ce847597b09",
"version": "a7f8149",
"author": "Womsxd",
"description": "",
"tags": [
@@ -3668,8 +3668,8 @@
{
"name": "皇女白术林尼.txt",
"type": "file",
"hash": "6bcaad967f26dfd276dc4def3c455cef29c87003",
"version": "6bcaad9",
"hash": "1722584245ae5d34d4b4bbd27dd2c268a7a0dfd3",
"version": "1722584",
"author": "",
"description": "",
"tags": [
@@ -3681,8 +3681,8 @@
{
"name": "皇女科莱莫娜.txt",
"type": "file",
"hash": "7860a7390bbb81ab04b2e7a1ba2d9595d7e30b55",
"version": "7860a73",
"hash": "52fbc1d5172da3b97dcc5f6d0b43f8a318aedd15",
"version": "52fbc1d",
"author": "我欲乘风",
"description": "",
"tags": [
@@ -3694,8 +3694,8 @@
{
"name": "芙芙卡维鲸鱼.txt",
"type": "file",
"hash": "e4d9780ee663f46747790801c578ee77be7557b5",
"version": "e4d9780",
"hash": "2daf3c12a1f618db05fd2091dd204bafce7c1103",
"version": "2daf3c1",
"author": "繁星入梦",
"description": "卡组内塞满3费卡即可",
"tags": [
@@ -3707,8 +3707,8 @@
{
"name": "莫娜白术皇女.txt",
"type": "file",
"hash": "e1a7ba965b3e08662e6e011132ad9f9180d786b7",
"version": "e1a7ba9",
"hash": "cad1618800224a0547bc9e65c9f86559d446955d",
"version": "cad1618",
"author": "我欲乘风",
"description": "",
"tags": [
@@ -3720,8 +3720,8 @@
{
"name": "莫娜砂糖琴.txt",
"type": "file",
"hash": "77340655c8e581a4d6d6dae49990810a424c2ed1",
"version": "7734065",
"hash": "b1a86ea6f64d7768b5788352bb9f4ad1a7fb7899",
"version": "b1a86ea",
"author": "huiyadanli",
"description": "",
"tags": [
@@ -3733,8 +3733,8 @@
{
"name": "迪希雅白术皇女.txt",
"type": "file",
"hash": "abfe6231556313143aa886a6c13fde1326c2aa20",
"version": "abfe623",
"hash": "8c21d1aa46ea31707a8151e1e83aac79079ca1b1",
"version": "8c21d1a",
"author": "我欲乘风",
"description": "",
"tags": [
@@ -3746,8 +3746,8 @@
{
"name": "重云雷神申鹤.txt",
"type": "file",
"hash": "c5cd909eb25a8e51359410f99c275583e849b48d",
"version": "c5cd909",
"hash": "c492d36aec63daa2e43a8bcce58753610190d500",
"version": "c492d36",
"author": "繁星入梦",
"description": "",
"tags": [
@@ -3759,8 +3759,8 @@
{
"name": "雷神柯莱刻晴[推荐].txt",
"type": "file",
"hash": "fe1cf87b52a6ce1f4b4ed1bb4ba2f37896f820e8",
"version": "fe1cf87",
"hash": "edac40f7bff00552c3a58f230e7a0838ad66a4aa",
"version": "edac40f",
"author": "我欲乘风",
"description": "",
"tags": [
@@ -3772,8 +3772,8 @@
{
"name": "雷神阿贝多丘丘王.txt",
"type": "file",
"hash": "df683ee17bfad977927eaba009eb4e61ceebdbf0",
"version": "df683ee",
"hash": "a5137107cbaef8ac9e4c848ea73556d8b08a399f",
"version": "a513710",
"author": "繁星入梦",
"description": "",
"tags": [
@@ -3783,6 +3783,11 @@
]
}
]
},
{
"name": "onekey",
"type": "directory",
"children": []
}
]
}