vip 优化天气查询速度 (#159)

* vip 优化天气查询速度
This commit is contained in:
Xtao_dada 2021-05-15 21:35:10 +08:00 committed by GitHub
parent 13d58dd826
commit 6bcac9b18f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -332,7 +332,7 @@
},
{
"name": "vip",
"version": "0.2",
"version": "0.21",
"section": "chat",
"maintainer": "xtaodada",
"size": "4.0 kb",

2
vip.py
View File

@ -15,7 +15,7 @@ async def weather(context):
await context.edit("出错了呜呜呜 ~ 无效的参数。")
return
async with bot.conversation('PagerMaid_Modify_bot') as conversation:
await conversation.send_message('/weather ' + message)
await conversation.send_message('/weather_api ' + message)
chat_response = await conversation.get_response()
await bot.send_read_acknowledge(conversation.chat_id)
weather_text = chat_response.text