Fix file fucker????

This commit is contained in:
eek7574 2022-12-01 13:34:26 +00:00
parent 0c4837934e
commit 2810e66f06

View file

@ -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,