Skip to content

Commit

Permalink
Update and rename 1drive.py to odrive.py
Browse files Browse the repository at this point in the history
  • Loading branch information
TechiError authored Aug 14, 2023
1 parent 45348dc commit 39839a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/1drive.py → plugins/odrive.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')}).")
Expand All @@ -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}`")

0 comments on commit 39839a6

Please sign in to comment.