From 39839a6bc0a6a2bc3235441c088904ce5ebb0d6e Mon Sep 17 00:00:00 2001 From: TechiError Date: Mon, 14 Aug 2023 16:12:44 +0530 Subject: [PATCH] Update and rename 1drive.py to odrive.py --- plugins/{1drive.py => odrive.py} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename plugins/{1drive.py => odrive.py} (95%) diff --git a/plugins/1drive.py b/plugins/odrive.py similarity index 95% rename from plugins/1drive.py rename to plugins/odrive.py index ac261f98b..8ea501628 100644 --- a/plugins/1drive.py +++ b/plugins/odrive.py @@ -50,7 +50,7 @@ async def onedrive_upload(event): ) await event.eor("Uploading...") - status = await onedrv.upload_file(file) + status = await onedrv().upload_file(file) if status.get("error"): return await event.eor(status.get("error")) await event.eor(f"Uploaded to OneDrive: [{status.get('name')}]({status.get('shareUrl')})\nTemp Download url [1 hour]: [{status.get('name')}]({status.get('@content.downloadUrl')}).") @@ -64,5 +64,5 @@ async def onedrive_download(event): if not link: return await event.eor("Give me a link to download") await event.eor("Downloading...") - filename = await onedrv.download_file(event, "resources/downloads", link) + filename = await onedrv().download_file(event, "resources/downloads", link) await event.eor(f"Downloaded to `resources/downloads/{filename}`")