Fix BytesIO reading
This commit is contained in:
parent
a4b0ae2b79
commit
08ab641ff1
1 changed files with 1 additions and 0 deletions
|
@ -37,6 +37,7 @@ class BotutilCog(Scale):
|
|||
with BytesIO() as file_bytes:
|
||||
raw = await af.read_bytes()
|
||||
file_bytes.write(raw)
|
||||
file_bytes.seek(0)
|
||||
log = File(file_bytes, file_name="jarvis.log")
|
||||
await ctx.reply(content="Here's the latest log", file=log)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue