mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
add more delay
This commit is contained in:
parent
4bad36d938
commit
260bbb9dcb
1 changed files with 2 additions and 2 deletions
|
@ -837,8 +837,8 @@ class OtherCog(commands.Cog):
|
|||
_io = BytesIO()
|
||||
engine.save_to_file(text, target_fn)
|
||||
engine.runAndWait()
|
||||
while not os.path.exists(target_fn):
|
||||
sleep(0.5)
|
||||
while not os.path.exists(target_fn) or os.stat(target_fn).st_size == 0:
|
||||
sleep(2)
|
||||
with open(target_fn, "rb") as f:
|
||||
_io.write(f.read())
|
||||
os.remove(target_fn)
|
||||
|
|
Loading…
Reference in a new issue