feat: 在最近成绩消息中添加歌曲缩略图
This commit is contained in:
parent
06dc8ea4d1
commit
e4b25e1845
@ -162,7 +162,13 @@ func getMyRecentScore(msg model.Message) (reply model.Reply) {
|
|||||||
}
|
}
|
||||||
wg.Wait()
|
wg.Wait()
|
||||||
for _, record := range records {
|
for _, record := range records {
|
||||||
scoreMsg += record.ToString() + "\n\n"
|
imageMsg := message.ImageMessage{
|
||||||
|
Type: "image",
|
||||||
|
Data: message.ImageMessageData{
|
||||||
|
File: "file:///tmp/qqbot/" + util.GetResizedIamgePathByOrgPath(util.GenTempFilePath(record.SongHash+".jpeg")),
|
||||||
|
},
|
||||||
|
}
|
||||||
|
scoreMsg += imageMsg.ToCQString() + record.ToString() + "\n\n"
|
||||||
userName = record.Name
|
userName = record.Name
|
||||||
recordCount++
|
recordCount++
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user