From a038930fd54cce183f9681973a9541003e2bd24e Mon Sep 17 00:00:00 2001 From: Zevaryx Date: Tue, 19 Apr 2022 16:58:42 -0600 Subject: [PATCH] Fix error in log command --- jarvis/cogs/botutil.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jarvis/cogs/botutil.py b/jarvis/cogs/botutil.py index e897742..65dcb9b 100644 --- a/jarvis/cogs/botutil.py +++ b/jarvis/cogs/botutil.py @@ -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)