refactor: centralize temporary file path generation and update file references
This commit is contained in:
@@ -176,7 +176,7 @@ func getMyRecentScore(msg model.Message) (reply model.Reply) {
|
||||
|
||||
func screenshotSS(msg model.Message) (reply model.Reply) {
|
||||
return model.Reply{
|
||||
ReplyMsg: "[CQ:image,file=file:///root/qqbot/tmp/" + scoresaber.GetSSPicture(strconv.Itoa(int(msg.UserId))) + "]",
|
||||
ReplyMsg: "[CQ:image,file=file:///root/qqbot/" + scoresaber.GetSSPicture(strconv.Itoa(int(msg.UserId))) + "]",
|
||||
ReferOriginMsg: true,
|
||||
FromMsg: msg,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user