ソースを参照

added a return for filename in the filedownloaded for roxbot.

tags/v1.8.0
Roxie Gibson 6年前
コミット
86befcf73b
1個のファイルの変更1行の追加0行の削除
  1. +1
    -0
      roxbot/http.py

+ 1
- 0
roxbot/http.py ファイルの表示

@@ -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):

読み込み中…
キャンセル
保存