mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
Fix file fucker????
This commit is contained in:
parent
0c4837934e
commit
2810e66f06
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue