summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ATRI/plugins/funny/data_source.py2
1 files changed, 1 insertions, 1 deletions
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("完成")