From 5264a93050f785d493ad543ad57e50c91a2b6338 Mon Sep 17 00:00:00 2001 From: Myned Date: Wed, 11 Oct 2017 11:09:15 -0400 Subject: [PATCH] Rate limited post saves over 5 --- src/main/cogs/booru.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/cogs/booru.py b/src/main/cogs/booru.py index 821eda2..3b04df0 100644 --- a/src/main/cogs/booru.py +++ b/src/main/cogs/booru.py @@ -164,7 +164,10 @@ class MsG: tb.print_exc() finally: if starred: - for url in starred: await user.send(url) + for url in starred: + await user.send(url) + if len(starred) > 5: + await asyncio.sleep(2.1) @e621_paginator.error async def e621_paginator_error(self, ctx, error):