From c6b1df7df7e1b35928415d12b443ce6f6f3fd621 Mon Sep 17 00:00:00 2001 From: yasirarism <55983182+yasirarism@users.noreply.github.com> Date: Tue, 4 Jul 2023 12:10:29 +0700 Subject: [PATCH] luoa --- misskaty/plugins/misc_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misskaty/plugins/misc_tools.py b/misskaty/plugins/misc_tools.py index 6eee2472..569681e3 100644 --- a/misskaty/plugins/misc_tools.py +++ b/misskaty/plugins/misc_tools.py @@ -71,7 +71,7 @@ async def kbbi_search(_, ctx: Client): @app.on_cmd("carbon") async def carbon_make(_, ctx: Client): - if len(ctx.command) or 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.") if ctx.reply_to_message.text: text = ctx.reply_to_message.text