修复 FullMatchRule 中调用 ctx.NickName() 的 panic 问题 (#902)

This commit is contained in:
昔音幻离
2024-05-10 12:40:51 +08:00
committed by GitHub
parent 8fa928d37f
commit a9dfbdb54b

View File

@@ -96,7 +96,7 @@ func init() {
return
}
name := ctx.NickName()
name := ctx.CardOrNickName(ctx.Event.UserID)
var d dish
if err := db.Pick("dish", &d); err != nil {
ctx.SendChain(message.Text("小店好像出错了,暂时端不出菜来惹"))