jefferycao1 / Kennen-bot

A discord bot for League of Legends
MIT License
11 stars 9 forks source link

Fix -build bug where it doesn't work first time if image not saved found #6

Closed jefferycao1 closed 7 years ago

jefferycao1 commented 7 years ago

find way to callback the function to save images in the while loop so it doesn't move on without synchronously finishing the save image function.

jefferycao1 commented 7 years ago

Another solution is to make the image first, then if (err) it will callback to the save image function to find that image, then restart the make image part.