Skip to content

Commit c0b063c

Browse files
committed
feat: qq 查歌显示别名
1 parent 06de96f commit c0b063c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/botcore/src/modules/musicSearch.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ export default <T extends BotTypes>({ bot, env, getContext, musicToFile }: Build
7777
for (const sheet of song.sheets) {
7878
bundle.addNode().setText(`${sheet.type === 'dx' ? 'DX ' : '标准'}谱面\n` + sheet.display.trim());
7979
}
80+
if (song.searchAcronyms?.length) {
81+
bundle.addNode().setText('此歌曲有一些别名:\n\n' + song.searchAcronyms.join('\n'));
82+
}
8083
};
8184

8285
const sendSong = async (req: SendMessageAction<T>, song: Song) => {

0 commit comments

Comments
 (0)