Add handlers for AniList rate limit (#92)

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

No files matched your search

+5
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)
}