Skip to content

Commit

Permalink
1.5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
idranme committed Dec 31, 2024
1 parent 389833c commit 9c3095e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "koishi-plugin-music-voice",
"description": "Provide the selected song as a voice",
"version": "1.5.4",
"version": "1.5.5",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ export function apply(ctx: Context, cfg: Config) {
const { channelId } = session
if (song.code === 0) {
const { src, interval } = song.data as SongData
if (!src) {
if (!src || src.startsWith('无法')) {
if (cfg.recall) session.bot.deleteMessage(channelId, tipMessageId)
return `${h.quote(quoteId)}获取歌曲失败。`
}
Expand Down

0 comments on commit 9c3095e

Please sign in to comment.