Read log bytes instead of log string
This commit is contained in:
parent
ce9dda8239
commit
8f0872b304
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ class BotutilCog(Scale):
|
|||
|
||||
async with AIOFile("jarvis.log", "r") as af:
|
||||
with BytesIO() as file_bytes:
|
||||
raw = await af.read()
|
||||
raw = await af.read_bytes()
|
||||
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