2
0
mirror of https://github.com/Nick80835/microbot synced 2025-08-31 06:26:04 +00:00

rename corona for inline to corona_inline

This commit is contained in:
Nick80835
2020-09-21 19:09:28 -04:00
parent c66878d508
commit e8cf00883d

View File

@@ -207,7 +207,7 @@ async def corona(event):
@ldr.add_inline_article("corona", default="corona")
async def corona(event):
async def corona_inline(event):
if event.args:
async with ldr.aioclient.get(f"https://disease.sh/v3/covid-19/countries/{event.args}", headers={"accept": "application/json"}) as response:
if response.status == 200: