From 119f310a1cdb49c09619a524f1c6896044dfc250 Mon Sep 17 00:00:00 2001 From: Kyomotoi Date: Mon, 1 Nov 2021 07:09:53 +0800 Subject: =?UTF-8?q?=F0=9F=90=9B=20=E5=8E=86=E5=8F=B2=E9=81=97=E7=95=99bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ATRI/plugins/funny/data_source.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ATRI') diff --git a/ATRI/plugins/funny/data_source.py b/ATRI/plugins/funny/data_source.py index 89b1392..4fe8ed7 100644 --- a/ATRI/plugins/funny/data_source.py +++ b/ATRI/plugins/funny/data_source.py @@ -38,7 +38,7 @@ class Funny(Service): "https://cdn.jsdelivr.net/gh/Kyomotoi/CDN@master/project/ATRI/laugh.txt" ) res = await request.get(url) - context = await res.text() # type: ignore + context = res.text with open(path, "w", encoding="utf-8") as w: w.write(context) logger.warning("完成") -- cgit v1.2.3