Update misc_tools.py

This commit is contained in:
yasirarism 2023-07-11 22:29:52 +07:00 committed by GitHub
parent c82a56bbdd
commit f34ac50c32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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."
)