增加查看签到排名 (#180)

*  增加查看签到排名

* 🚨 修lint

* 🚨 修lint
This commit is contained in:
himawari
2022-04-06 10:59:56 +08:00
committed by GitHub
parent a6bd717971
commit 9b26eea754
6 changed files with 83 additions and 1 deletions

View File

@@ -171,6 +171,10 @@ func init() {
canvas.DrawImage(back, 0, 0)
}
canvas.SetColor(color.Black)
_, err = file.GetLazyData(text.BoldFontFile, false, true)
if err != nil {
ctx.SendChain(message.Text("ERROR:", err))
}
if err = canvas.LoadFontFace(text.BoldFontFile, fontSize); err != nil {
ctx.SendChain(message.Text("ERROR:", err))
return