refactor: centralize temporary file path generation and update file references

This commit is contained in:
lixiangwuxian
2025-02-22 18:40:26 +08:00
parent 388cfdf377
commit 38940fa07f
7 changed files with 25 additions and 14 deletions

View File

@@ -158,7 +158,7 @@ func getMyRecentScore(msg model.Message) (reply model.Reply) {
func screenShotBL(msg model.Message) (reply model.Reply) {
return model.Reply{
ReplyMsg: "[CQ:image,file=file:///root/qqbot/tmp/" + beatleader.GetBLPicture(strconv.Itoa(int(msg.UserId))) + "]",
ReplyMsg: "[CQ:image,file=file:///root/qqbot/" + beatleader.GetBLPicture(strconv.Itoa(int(msg.UserId))) + "]",
ReferOriginMsg: true,
FromMsg: msg,
}