mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
✨ feat: 适配汽水音乐
的链接分享
This commit is contained in:
parent
70d6f84589
commit
8565b34f4a
@ -1797,7 +1797,7 @@ export class tools extends plugin {
|
||||
// 汽水音乐
|
||||
async qishuiMusic(e) {
|
||||
const normalRegex = /^(.*?)\s*https?:\/\//;
|
||||
const musicInfo = normalRegex.exec(e.msg)?.[1].trim();
|
||||
const musicInfo = normalRegex.exec(e.msg)?.[1].trim().replace("@汽水音乐", "");
|
||||
logger.info(`[R插件][qishuiMusic] 识别音乐为:${musicInfo}`);
|
||||
// 使用临时接口下载
|
||||
const url = await this.musicTempApi(e, musicInfo, "汽水音乐");
|
||||
|
Loading…
x
Reference in New Issue
Block a user