From 2810e66f06f9404f7c720e9c3c2812f447e8fa35 Mon Sep 17 00:00:00 2001 From: eek7574 Date: Thu, 1 Dec 2022 13:34:26 +0000 Subject: [PATCH] Fix file fucker???? --- cogs/other.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/other.py b/cogs/other.py index 2991c7f..229d9d6 100644 --- a/cogs/other.py +++ b/cogs/other.py @@ -1,3 +1,4 @@ +import asyncio import io import os from typing import Tuple, Optional @@ -187,8 +188,7 @@ class OtherCog(commands.Cog): file = io.BytesIO(await file.read()) file.seek(0) await ctx.edit(content="Corrupting file...") - file = await self.bot.loop.run_in_executor( - None, + file = await asyncio.to_thread( self.corrupt_file, file, passes,