mirror of
https://github.com/Jerryplusy/crystelf-plugin.git
synced 2025-12-05 15:41:56 +00:00
🧹 chore(apps/music.js): clean up group search after sending music results to improve functionality
This commit is contained in:
parent
a7e701cbb2
commit
8237606ed3
@ -133,10 +133,10 @@ export class CrystelfMusic extends plugin {
|
||||
}
|
||||
const adapter = await YunzaiUtils.getAdapter(e);
|
||||
await Message.emojiLike(e,e.message_id,60,e.group_id,adapter);
|
||||
await musicSearch.clearGroupSearch(e.group_id);
|
||||
const result = await musicSearch.handleSelection(e, index);
|
||||
if (result.success) {
|
||||
await this.sendMusicResult(e, result);
|
||||
await musicSearch.clearGroupSearch(e.group_id);
|
||||
} else {
|
||||
await e.reply(`${result.message}`, true);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user