Add handlers for AniList rate limit (#92)

This commit is contained in:
Simon Lecoq
2021-02-02 22:45:10 +01:00
committed by GitHub
parent 651bc9bc17
commit 8d5b855167
2 changed files with 39 additions and 12 deletions

View File

@@ -131,3 +131,8 @@
await page.close()
return {resized, mime}
}
/** Wait */
export async function wait(seconds) {
await new Promise(solve => setTimeout(solve), seconds*1000)
}