From 79759e991f6ec0671c41691d7098343d346173c8 Mon Sep 17 00:00:00 2001 From: Kyomotoi <37587870+Kyomotoi@users.noreply.github.com> Date: Sun, 31 May 2020 13:09:07 +0800 Subject: Update yiqing.py --- AyaBot/plugins/yiqing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AyaBot/plugins/yiqing.py b/AyaBot/plugins/yiqing.py index 1a35c17..9dc26c7 100644 --- a/AyaBot/plugins/yiqing.py +++ b/AyaBot/plugins/yiqing.py @@ -29,7 +29,7 @@ response_3 = requests.get(url=url_3).json() data_3 = json.loads(response_3['data']) lastUpdateTime = data_1["lastUpdateTime"] -directory = "D:\code\Aya\AyaBot\plugins\data_yiqing\ " +directory = "改成数据保存路径,防止防爬" filename1 = directory + lastUpdateTime.split(' ')[0] + "_data_1.json" with open(filename1, "w", encoding="utf-8") as f: @@ -75,7 +75,7 @@ LIST_FG = """国外数据来源于世卫,故更新会略慢 """ -@on_command('yiqing', aliases=['疫情', '疫情情况', 'test'], only_to_me=False) +@on_command('yiqing', aliases=['疫情', '疫情情况'], only_to_me=False) async def yiqing(session: CommandSession): country = session.get('country', prompt='你想查哪个国家呢?(例:中国)') if country == "中国": -- cgit v1.2.3 From f2cec97fa792f20fb147ef2ae7dcb4b05292ac4c Mon Sep 17 00:00:00 2001 From: Kyomotoi <37587870+Kyomotoi@users.noreply.github.com> Date: Sun, 31 May 2020 13:55:11 +0800 Subject: Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e50a1d5..9aa3c6e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Aya Bot +# Aya 綾 --- CoolQ Bot by Python --- -- cgit v1.2.3