Spaces:
Paused
Paused
Update plugins/catbox.py
Browse files- plugins/catbox.py +2 -3
plugins/catbox.py
CHANGED
@@ -13,7 +13,7 @@ cat_uploader = CatboxUploader()
|
|
13 |
def inline_pic():
|
14 |
return choice(ULTROID_IMAGES)
|
15 |
|
16 |
-
@ultroid_cmd(pattern="
|
17 |
async def catbox_upload_plugin(event):
|
18 |
"""
|
19 |
Plugin untuk mengunggah file ke Catbox.moe.
|
@@ -38,8 +38,7 @@ async def catbox_upload_plugin(event):
|
|
38 |
# If it were an async method, it would be defined with 'async def'.
|
39 |
uploaded_url = cat_uploader.upload_file(filePath)
|
40 |
|
41 |
-
await message.edit(f"
|
42 |
-
file=inline_pic())
|
43 |
except Exception as e:
|
44 |
await message.edit(f"Terjadi kesalahan saat mengunggah: {e}")
|
45 |
finally:
|
|
|
13 |
def inline_pic():
|
14 |
return choice(ULTROID_IMAGES)
|
15 |
|
16 |
+
@ultroid_cmd(pattern="catbox(?: |$)(.*)")
|
17 |
async def catbox_upload_plugin(event):
|
18 |
"""
|
19 |
Plugin untuk mengunggah file ke Catbox.moe.
|
|
|
38 |
# If it were an async method, it would be defined with 'async def'.
|
39 |
uploaded_url = cat_uploader.upload_file(filePath)
|
40 |
|
41 |
+
await message.edit(f"<blockquote>📤 Successful upload!\nURL: {uploaded_url}</blockquote>", parse_mode="html")
|
|
|
42 |
except Exception as e:
|
43 |
await message.edit(f"Terjadi kesalahan saat mengunggah: {e}")
|
44 |
finally:
|