mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 17:44:50 +00:00
Update misc_tools.py
This commit is contained in:
parent
8e6d62cf7a
commit
3f7c8a1d18
1 changed files with 2 additions and 2 deletions
|
|
@ -94,9 +94,9 @@ async def kbbi_search(_, ctx: Client):
|
|||
|
||||
@app.on_cmd("carbon")
|
||||
async def carbon_make(self: Client, ctx: Message):
|
||||
if ctx.reply_to_message.text:
|
||||
if ctx.reply_to_message and ctx.reply_to_message.text:
|
||||
text = ctx.reply_to_message.text
|
||||
elif ctx.reply_to_message.caption:
|
||||
elif ctx.reply_to_message and ctx.reply_to_message.caption:
|
||||
text = ctx.reply_to_message.caption
|
||||
elif len(ctx.command) > 1:
|
||||
text = ctx.input
|
||||
|
|
|
|||
Loading…
Reference in a new issue