From 7463792de7a86fe0abdf617e10c4145c4a59d11b Mon Sep 17 00:00:00 2001 From: fumiama Date: Sun, 23 Jan 2022 13:38:56 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20fortune?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- go.mod | 2 +- go.sum | 4 ++-- plugin_fortune/fortune.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 6fce8687..a29a9874 100644 --- a/go.mod +++ b/go.mod @@ -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 diff --git a/go.sum b/go.sum index aff82f84..bfa3ad91 100644 --- a/go.sum +++ b/go.sum @@ -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= diff --git a/plugin_fortune/fortune.go b/plugin_fortune/fortune.go index 2d1163cc..946a32ad 100644 --- a/plugin_fortune/fortune.go +++ b/plugin_fortune/fortune.go @@ -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