🐛 fix fortune

This commit is contained in:
fumiama 2022-01-23 13:38:56 +08:00
parent 80f49c47c6
commit 7463792de7
3 changed files with 4 additions and 4 deletions

2
go.mod
View File

@ -3,7 +3,7 @@ module github.com/FloatTech/ZeroBot-Plugin
go 1.17
require (
github.com/FloatTech/AnimeAPI v1.2.4-beta18
github.com/FloatTech/AnimeAPI v1.2.4-beta19
github.com/FloatTech/zbputils v1.2.4-beta7
github.com/antchfx/htmlquery v1.2.4
github.com/corona10/goimagehash v1.0.3

4
go.sum
View File

@ -1,5 +1,5 @@
github.com/FloatTech/AnimeAPI v1.2.4-beta18 h1:H+ypB76HHhZibLzSPkmVCa/E9r995M913MIezmZ0SNM=
github.com/FloatTech/AnimeAPI v1.2.4-beta18/go.mod h1:rhYvzqLH2YTKBOk7DfJsXsdZlnxhpBP3HvctwqlLykM=
github.com/FloatTech/AnimeAPI v1.2.4-beta19 h1:Yz19ppAdx9cZZbrJBEPqon6RNHY1TuCQl7SALFIW1lQ=
github.com/FloatTech/AnimeAPI v1.2.4-beta19/go.mod h1:rhYvzqLH2YTKBOk7DfJsXsdZlnxhpBP3HvctwqlLykM=
github.com/FloatTech/bot-manager v1.0.0/go.mod h1:8YYRJ16oroGHQGD2En0oVnmcKJkxR9O/jd5BPSfWfOQ=
github.com/FloatTech/zbputils v1.2.4-beta7 h1:DofQTSVEBU1BQnLb4GahNZqsqVqoj4Lu5GDJa2rJW9o=
github.com/FloatTech/zbputils v1.2.4-beta7/go.mod h1:mPVpKu2scTyBiitNmzCrxGc9aIKs9rwfb6iqz/+heck=

View File

@ -152,7 +152,7 @@ func init() {
return
}
_, err = draw(background, title, text, f)
f.Close()
_ = f.Close()
if err != nil {
ctx.SendChain(message.Text("ERROR: ", err))
return