feat(live2d): add pozemka_snowy_plains_in_words

This commit is contained in:
Haoyu Xu
2023-02-14 16:07:42 -05:00
parent d92ae023d5
commit 0e4017351d
5 changed files with 29 additions and 17 deletions

View File

@@ -117,11 +117,7 @@ export default class CharwordTable {
}
async #download(region) {
const historyResponse = await fetch(`https://api.github.com/repos/Kengxxiao/ArknightsGameData/commits?path=${region}/gamedata/excel/charword_table.json`, {
headers: {
'Authorization': `Bearer ${process.env.GITHUB_TOKEN}`,
}
})
const historyResponse = await fetch(`https://api.github.com/repos/Kengxxiao/ArknightsGameData/commits?path=${region}/gamedata/excel/charword_table.json`)
const historyData = await historyResponse.json()
const lastCommit = historyData[0]
const lastCommitDate = new Date(lastCommit.commit.committer.date)
@@ -195,16 +191,8 @@ export default class CharwordTable {
async #zhTWDownload() {
const output = {}
const region = 'zh_TW'
const historyResponse = await fetch(`https://api.github.com/repos/Kengxxiao/ArknightsGameData/commits?path=${region}/gamedata/excel/charword_table.json`, {
headers: {
'Authorization': `Bearer ${process.env.GITHUB_TOKEN}`,
}
})
const handbookHistoryResponse = await fetch(`https://api.github.com/repos/Kengxxiao/ArknightsGameData/commits?path=${region}/gamedata/excel/handbook_info_table.json`, {
headers: {
'Authorization': `Bearer ${process.env.GITHUB_TOKEN}`,
}
})
const historyResponse = await fetch(`https://api.github.com/repos/Kengxxiao/ArknightsGameData/commits?path=${region}/gamedata/excel/charword_table.json`)
const handbookHistoryResponse = await fetch(`https://api.github.com/repos/Kengxxiao/ArknightsGameData/commits?path=${region}/gamedata/excel/handbook_info_table.json`)
const historyData = await historyResponse.json()
const handbookHistoryData = await handbookHistoryResponse.json()
const lastCommit = historyData[0]