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 io
import os import os
from typing import Tuple, Optional from typing import Tuple, Optional
@ -187,8 +188,7 @@ class OtherCog(commands.Cog):
file = io.BytesIO(await file.read()) file = io.BytesIO(await file.read())
file.seek(0) file.seek(0)
await ctx.edit(content="Corrupting file...") await ctx.edit(content="Corrupting file...")
file = await self.bot.loop.run_in_executor( file = await asyncio.to_thread(
None,
self.corrupt_file, self.corrupt_file,
file, file,
passes, passes,