We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 410dd05 commit b777b34Copy full SHA for b777b34
1 file changed
plugin/dish/dish.go
@@ -62,7 +62,7 @@ func init() {
62
return
63
}
64
65
- name := ctx.NickName()
+ name := ctx.CardOrNickName(ctx.Event.UserID)
66
dishName := ctx.State["args"].(string)
67
68
if dishName == "" {
@@ -82,12 +82,10 @@ func init() {
82
83
84
85
- ctx.SendChain(message.Text(fmt.Sprintf(
86
- "已为客官%s找到%s的做法辣!\n"+
87
- "原材料:%s\n"+
88
- "步骤:\n"+
89
- "%s",
90
- name, d.Name, d.Materials, d.Steps),
+ ctx.SendChain(message.Text(
+ "已为客官", name, "找到", d.Name, "的做法辣!\n",
+ "原材料:", d.Materials, "\n",
+ "步骤:", d.Steps,
91
))
92
})
93
@@ -105,12 +103,10 @@ func init() {
105
103
106
104
107
108
109
- "已为客官%s送上%s的做法:\n"+
110
111
112
113
+ "已为客官", name, "送上", d.Name, "的做法:\n",
114
115
116
0 commit comments