Browse Source

added a return for filename in the filedownloaded for roxbot.

tags/v1.8.0
Roxie Gibson 6 years ago
parent
commit
86befcf73b
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      roxbot/http.py

+ 1
- 0
roxbot/http.py View File

@@ -33,6 +33,7 @@ async def download_file(url, filename=None):
async with session.get(url, headers={'User-agent': 'RoxBot Discord Bot'}) as data:
with open(filename, 'wb') as f:
f.write(await data.read())
return filename


async def upload_file(url, file):

Loading…
Cancel
Save