Skip to content

Commit

Permalink
Update Miscellaneous.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MekhyW committed Sep 7, 2024
1 parent f3ac656 commit 32f2725
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Bot/Miscellaneous.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def custom_command(cookiebot, msg, chat_id, language):
if msg['text'].startswith("/pesh"):
pesh(cookiebot, msg, chat_id, language, photo, image_id)
return
caption = f"Foto custom de {msg['text'].replace('/', '').replace('@CookieMWbot', '').capitalize()} com ID {image_id}"
caption = f"Foto custom de {msg['text'].replace('/', '').replace('@CookieMWbot', '').split()[0].capitalize()} com ID {image_id}"
send_photo(cookiebot, chat_id, photo, msg_to_reply=msg, caption=caption, language=language)

def roll_dice(cookiebot, msg, chat_id, language):
Expand Down

0 comments on commit 32f2725

Please sign in to comment.