Fix error in log command
This commit is contained in:
parent
03d08dd16c
commit
a038930fd5
1 changed files with 2 additions and 2 deletions
|
@ -35,8 +35,8 @@ class BotutilCog(Scale):
|
|||
|
||||
async with AIOFile("jarvis.log", "r") as af:
|
||||
with BytesIO() as file_bytes:
|
||||
async for chunk in af.read(8192):
|
||||
file_bytes.write(chunk)
|
||||
raw = await af.read()
|
||||
file_bytes.write(raw)
|
||||
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