From f34ac50c323084052a7e4d5b548aeb2124192b13 Mon Sep 17 00:00:00 2001 From: yasirarism <55983182+yasirarism@users.noreply.github.com> Date: Tue, 11 Jul 2023 22:29:52 +0700 Subject: [PATCH] Update misc_tools.py --- misskaty/plugins/misc_tools.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/misskaty/plugins/misc_tools.py b/misskaty/plugins/misc_tools.py index d0d5f440..2fdf4fbf 100644 --- a/misskaty/plugins/misc_tools.py +++ b/misskaty/plugins/misc_tools.py @@ -94,11 +94,7 @@ async def kbbi_search(_, ctx: Client): @app.on_cmd("carbon") async def carbon_make(self: Client, ctx: Message): - if len(ctx.command) == 1 and not ctx.reply_to_message: - return await ctx.reply( - "Please reply text to make carbon or add text after command." - ) - if not ctx.reply_to_message: + if len(ctx.command) == 1 or not ctx.reply_to_message: return await ctx.reply( "Please reply text to make carbon or add text after command." )