mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 13:59:39 +08:00
fix: reply face
This commit is contained in:
parent
ec00251972
commit
71109f23fb
@ -414,10 +414,10 @@ func init() { // 插件主体
|
|||||||
ctx.SendChain(message.Text("ERROR: 表情长度为 0"))
|
ctx.SendChain(message.Text("ERROR: 表情长度为 0"))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
ids := facere.FindStringSubmatch(face)[1]
|
ids := facere.FindStringSubmatch(face)
|
||||||
id := rune(0)
|
id := rune(0)
|
||||||
if len(ids) > 0 {
|
if len(ids) == 2 && len(ids[1]) > 0 {
|
||||||
idi, err := strconv.Atoi(ids)
|
idi, err := strconv.Atoi(ids[1])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ctx.SendChain(message.Text("ERROR: ", err))
|
ctx.SendChain(message.Text("ERROR: ", err))
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user