Skip to content

Commit

Permalink
fix:完善meme帮助
Browse files Browse the repository at this point in the history
  • Loading branch information
Azusa-Yuan committed Jan 12, 2025
1 parent e4c340e commit fea5fd7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions plugin/meme/meme_core.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,12 @@ func QueryEmojiInfo(key string) string {
if info == nil {
return "没有该表情的信息"
}
resText := key + "帮助如下:"
resText += fmt.Sprintf("\n 最小文本信息个数:%d, 最大文本信息个数:%d", info.ParamsType.MinTexts, info.ParamsType.MaxTexts)
resText += fmt.Sprintf("\n 最小图片张数:%d, 最大图片张数:%d", info.ParamsType.MinImages, info.ParamsType.MaxImages)
resText := ""
resText += fmt.Sprintf("\n表情名:%s", info.Key)
resText += fmt.Sprintf("\n关键词:%s", strings.Join(info.Keywords, "/"))

resText += fmt.Sprintf("\n最小文本数目:%d, 最大文本数目:%d", info.ParamsType.MinTexts, info.ParamsType.MaxTexts)
resText += fmt.Sprintf("\n最小图片数目:%d, 最大图片数目:%d", info.ParamsType.MinImages, info.ParamsType.MaxImages)
resText += "\n可选参数如下:"
parserOptions := info.ParamsType.ArgsType.ParserOptions
for _, parserOption := range parserOptions {
Expand Down

0 comments on commit fea5fd7

Please sign in to comment.