diff options
author | Kyomotoi <[email protected]> | 2020-05-31 15:05:40 +0800 |
---|---|---|
committer | Kyomotoi <[email protected]> | 2020-05-31 15:05:40 +0800 |
commit | a1788b1fb8001579bf67b8f4d60d0c4b8b675102 (patch) | |
tree | 3b7f6e9cb04e235db7ebe5c54dcc1dad4b863b79 /AyaBot | |
parent | 74d76543072a89fd7f4edbbde94eb665cc24275d (diff) | |
parent | f2cec97fa792f20fb147ef2ae7dcb4b05292ac4c (diff) | |
download | ATRI-a1788b1fb8001579bf67b8f4d60d0c4b8b675102.tar.gz ATRI-a1788b1fb8001579bf67b8f4d60d0c4b8b675102.tar.bz2 ATRI-a1788b1fb8001579bf67b8f4d60d0c4b8b675102.zip |
Merge branch 'master' of https://github.com/Kyomotoi/Aya
Diffstat (limited to 'AyaBot')
-rw-r--r-- | AyaBot/plugins/yiqing.py | 4 |
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 == "中国": |