From 8f0872b30403b0f17a4c59067aa09e0e331cf5ff Mon Sep 17 00:00:00 2001 From: Zevaryx Date: Tue, 19 Apr 2022 16:59:57 -0600 Subject: [PATCH] Read log bytes instead of log string --- jarvis/cogs/botutil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jarvis/cogs/botutil.py b/jarvis/cogs/botutil.py index 312bd4b..c0a08f6 100644 --- a/jarvis/cogs/botutil.py +++ b/jarvis/cogs/botutil.py @@ -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)