summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyomotoi <[email protected]>2020-05-31 13:09:07 +0800
committerGitHub <[email protected]>2020-05-31 13:09:07 +0800
commit79759e991f6ec0671c41691d7098343d346173c8 (patch)
tree0b6492f88cc5b1e1a550c748b78df09c10c56d43
parent3024a100de2eeb0ef9bd1049de12c2f696a2c4fd (diff)
downloadATRI-79759e991f6ec0671c41691d7098343d346173c8.tar.gz
ATRI-79759e991f6ec0671c41691d7098343d346173c8.tar.bz2
ATRI-79759e991f6ec0671c41691d7098343d346173c8.zip
Update yiqing.py
-rw-r--r--AyaBot/plugins/yiqing.py4
1 files 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 == "中国":