diff --git a/covid.py b/covid.py index 3710116..794af44 100644 --- a/covid.py +++ b/covid.py @@ -126,9 +126,15 @@ async def covid_info(context): city = await obtain_message(context) except ValueError: return await context.edit("[covid] 无法获取城市名!") + zc = False + if city.find("政策") != -1: + zc = True + city = city.replace("政策", "") city = NewsBot.data.get(city) if city: - policy = await city.policy + policy = "Tips: 查询出行政策可加上 `政策`" + if zc: + policy = await city.policy await context.edit(f"{city.main_info}\n\n{policy}") else: await context.edit("[covid] 只限查询国内城市或你地理没学好。") diff --git a/list.json b/list.json index 069977b..698b057 100644 --- a/list.json +++ b/list.json @@ -792,10 +792,10 @@ }, { "name": "covid", - "version": "1.001", + "version": "1.01", "section": "daily", "maintainer": "xtaodada", - "size": "3.50 kb", + "size": "3.90 kb", "supported": true, "des-short": "获取新冠疫情信息。(国内版)", "des": "获取新冠疫情信息。(国内版)。\n指令:-covid"