Skip to content

Commit 2d4f2b7

Browse files
committed
Add "Yae Miko" drip marketing
1 parent b9f1b49 commit 2d4f2b7

File tree

3 files changed

+44
-17
lines changed

3 files changed

+44
-17
lines changed

src/commands/characters/character.ts

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -313,12 +313,19 @@ Note: this command supports fuzzy search.`,
313313
embed.setTitle(`${char.name}: Information`)
314314
.setDescription(metadata.trim())
315315

316+
const va: string[] = []
317+
316318
if (char.meta.cvChinese)
317-
embed.addField("Voice Actors", `**Chinese**: ${char.meta.cvChinese}
318-
**Japanese**: ${char.meta.cvJapanese}
319-
**English**: ${char.meta.cvEnglish}
320-
**Korean**: ${char.meta.cvKorean}
321-
`)
319+
va.push(`**Chinese**: ${char.meta.cvChinese}`)
320+
if (char.meta.cvJapanese)
321+
va.push(`**Japanese**: ${char.meta.cvJapanese}`)
322+
if (char.meta.cvEnglish)
323+
va.push(`**English**: ${char.meta.cvEnglish}`)
324+
if (char.meta.cvKorean)
325+
va.push(`**Korean**: ${char.meta.cvKorean}`)
326+
327+
if (va.length>0)
328+
embed.addField("Voice Actors", va.join("\n"))
322329
return embed
323330
}
324331

src/data/gamedata/characters.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24114,6 +24114,26 @@
2411424114
}
2411524115
}
2411624116
},
24117+
"Yae Miko": {
24118+
"name": "Yae Miko",
24119+
"desc": "The Grand Narukami Shrine's head shrine maiden and a descendant of Kitsune lineage, Eternity's servant and friend... and the intimidating editor-in-chief of Yae Publishing House, a publisher of light novels.",
24120+
"icon": "https://i.imgur.com/ikv6D0A.png",
24121+
"imgs": [
24122+
"https://upload-os-bbs.hoyolab.com/upload/2021/12/31/1015537/cc2e06e86028de75b1faba0e746c1369_1206165041119697161.jpg",
24123+
"https://upload-os-bbs.hoyolab.com/upload/2021/12/31/1015537/1d48c7e22b492120e00cb258ffaf3971_1019909919516725003.jpg"
24124+
],
24125+
"meta": {
24126+
"association": "Inazuma",
24127+
"title": "Astute Amusement",
24128+
"detail": "The Grand Narukami Shrine's head shrine maiden and a descendant of Kitsune lineage, Eternity's servant and friend... and the intimidating editor-in-chief of Yae Publishing House, a publisher of light novels.",
24129+
"affiliation": "Grand Narukami Shrine",
24130+
"constellation": "Divina Vulpes",
24131+
"element": "Electro",
24132+
"cvChinese": "杜冥鸦",
24133+
"cvJapanese": "佐倉綾音",
24134+
"cvKorean": "문유정"
24135+
}
24136+
},
2411724137
"Yanfei": {
2411824138
"name": "Yanfei",
2411924139
"desc": "A well-known legal adviser active in Liyue Harbor. A brilliant young lady in whose veins runs the blood of an illuminated beast.",

src/utils/Types.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -381,18 +381,18 @@ export enum CurveEnum {
381381
}
382382

383383
export interface Meta {
384-
birthMonth?: number
385-
birthDay?: number
386-
association?: Association
387-
title: string
388-
detail: string
389-
affiliation?: string
390-
element: string
391-
constellation: string
392-
cvChinese?: string
393-
cvJapanese?: string
394-
cvEnglish?: string
395-
cvKorean?: string
384+
birthMonth?: number
385+
birthDay?: number
386+
association?: Association
387+
title: string
388+
detail: string
389+
affiliation?: string
390+
element: string
391+
constellation?: string
392+
cvChinese?: string
393+
cvJapanese?: string
394+
cvEnglish?: string
395+
cvKorean?: string
396396
}
397397

398398
export enum Association {

0 commit comments

Comments
 (0)