From d67a6c46691abc031e5fe429871bed8114fffd33 Mon Sep 17 00:00:00 2001 From: Nick80835 Date: Tue, 24 Mar 2020 11:03:53 -0400 Subject: [PATCH] bot-ify cheem/pop --- ubot/modules/memes.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/ubot/modules/memes.py b/ubot/modules/memes.py index bf17dcb..c1d3625 100644 --- a/ubot/modules/memes.py +++ b/ubot/modules/memes.py @@ -59,20 +59,26 @@ async def vapor(event): @ldr.add(pattern="pop") async def popifycmd(event): - text_arg = await get_text_arg(event) + text_arg, reply = await get_text_arg(event) pop_text = await popify(text_arg) - await event.edit(pop_text) + if reply: + await reply.reply(pop_text) + else: + await event.reply(pop_text) @ldr.add(pattern="cheem") async def cheemifycmd(event): - text_arg = await get_text_arg(event) + text_arg, reply = await get_text_arg(event) cheems_text = await cheemify(text_arg) - await event.edit(cheems_text) + if reply: + await reply.reply(cheems_text) + else: + await event.reply(cheems_text) @ldr.add(pattern="zal")