mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-20 02:26:32 +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 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,
|
||||||
|
|
Loading…
Reference in a new issue