From f55504724c4ebd718605c27b1ecaa3d829a16852 Mon Sep 17 00:00:00 2001 From: yasirarism <55983182+yasirarism@users.noreply.github.com> Date: Tue, 4 Jul 2023 12:13:44 +0700 Subject: [PATCH] okehh --- misskaty/plugins/misc_tools.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/misskaty/plugins/misc_tools.py b/misskaty/plugins/misc_tools.py index af6fef84..f3a295a4 100644 --- a/misskaty/plugins/misc_tools.py +++ b/misskaty/plugins/misc_tools.py @@ -71,7 +71,9 @@ async def kbbi_search(_, ctx: Client): @app.on_cmd("carbon") async def carbon_make(_, ctx: Client): - if len(ctx.command) == 1 or not ctx.reply_to_message: + if len(ctx.command) == 1 and not reply_to_message: + return await ctx.reply("Please reply text to make carbon or add text after command.") + if not reply_to_message: return await ctx.reply("Please reply text to make carbon or add text after command.") if ctx.reply_to_message.text: text = ctx.reply_to_message.text