mirror of
https://github.com/Nick80835/microbot
synced 2025-09-04 16:35:35 +00:00
rename corona for inline to corona_inline
This commit is contained in:
@@ -207,7 +207,7 @@ async def corona(event):
|
|||||||
|
|
||||||
|
|
||||||
@ldr.add_inline_article("corona", default="corona")
|
@ldr.add_inline_article("corona", default="corona")
|
||||||
async def corona(event):
|
async def corona_inline(event):
|
||||||
if event.args:
|
if event.args:
|
||||||
async with ldr.aioclient.get(f"https://disease.sh/v3/covid-19/countries/{event.args}", headers={"accept": "application/json"}) as response:
|
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:
|
if response.status == 200:
|
||||||
|
Reference in New Issue
Block a user