2
0
mirror of https://github.com/Nick80835/microbot synced 2025-09-02 23:45:37 +00:00

improve corona command

This commit is contained in:
Nick80835
2020-04-03 12:04:34 -04:00
parent d693412411
commit fdc48d8b20
2 changed files with 27 additions and 7 deletions

View File

@@ -11,13 +11,6 @@ from ubot.micro_bot import micro_bot
ldr = micro_bot.loader
@ldr.add(pattern="corona")
async def corona(event):
corona_data = get("https://corona.lmao.ninja/all").json()
response_text = f"`Cases: `**{corona_data['cases']}**\n`Deaths: `**{corona_data['deaths']}**\n`Recoveries: `**{corona_data['recovered']}**"
await event.reply(response_text)
@ldr.add(pattern="chatid")
async def chatidgetter(event):
if event.is_reply: