summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyomotoi <[email protected]>2020-05-31 15:05:40 +0800
committerKyomotoi <[email protected]>2020-05-31 15:05:40 +0800
commita1788b1fb8001579bf67b8f4d60d0c4b8b675102 (patch)
tree3b7f6e9cb04e235db7ebe5c54dcc1dad4b863b79
parent74d76543072a89fd7f4edbbde94eb665cc24275d (diff)
parentf2cec97fa792f20fb147ef2ae7dcb4b05292ac4c (diff)
downloadATRI-a1788b1fb8001579bf67b8f4d60d0c4b8b675102.tar.gz
ATRI-a1788b1fb8001579bf67b8f4d60d0c4b8b675102.tar.bz2
ATRI-a1788b1fb8001579bf67b8f4d60d0c4b8b675102.zip
Merge branch 'master' of https://github.com/Kyomotoi/Aya
-rw-r--r--AyaBot/plugins/yiqing.py4
-rw-r--r--README.md2
2 files changed, 3 insertions, 3 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 == "中国":
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
---