mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
🐞 fix: 修复空格导致的不能触发
This commit is contained in:
parent
103748cd88
commit
82f8c26b97
@ -109,8 +109,8 @@ export class songRequest extends plugin {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else if (await redisGetKey(REDIS_YUNZAI_SONGINFO) != []) {
|
} else if (await redisGetKey(REDIS_YUNZAI_SONGINFO) != []) {
|
||||||
if (e.msg.match(/听(\d+)/)) {
|
if (e.msg.replace(/\s+/g, "").match(/听(\d+)/)) {
|
||||||
const pickNumber = e.msg.match(/听(\d+)/)[1] - 1
|
const pickNumber = e.msg.replace(/\s+/g, "").match(/听(\d+)/)[1] - 1
|
||||||
let group_id = e.group.group_id
|
let group_id = e.group.group_id
|
||||||
if (!group_id) return
|
if (!group_id) return
|
||||||
let songInfo = await redisGetKey(REDIS_YUNZAI_SONGINFO)
|
let songInfo = await redisGetKey(REDIS_YUNZAI_SONGINFO)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user