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 e85291e commit f3ac656
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 @@ -173,7 +173,7 @@ def pesh(cookiebot, msg, chat_id, language, photo, image_id):

def custom_command(cookiebot, msg, chat_id, language):
send_chat_action(cookiebot, chat_id, 'upload_photo')
bloblist = list(storage_bucket.list_blobs(prefix="Custom/"+msg['text'].replace('/', '').replace("@CookieMWbot", '')))
bloblist = list(storage_bucket.list_blobs(prefix="Custom/"+msg['text'].replace('/', '').replace("@CookieMWbot", '').split()[0]))
if len(msg['text'].split()) > 1 and msg['text'].split()[1].isdigit():
image_id = int(msg['text'].split()[1])
else:
Expand Down

0 comments on commit f3ac656

Please sign in to comment.