From 23954252a21dda279359170861beb9528a660aa7 Mon Sep 17 00:00:00 2001 From: Myned Date: Sun, 29 Oct 2017 17:55:40 -0400 Subject: [PATCH] Added typing indicator for multiple pools --- src/main/cogs/booru.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/cogs/booru.py b/src/main/cogs/booru.py index 4465d09..9ac64ef 100644 --- a/src/main/cogs/booru.py +++ b/src/main/cogs/booru.py @@ -478,7 +478,7 @@ class MsG: return args - async def _get_pool(self, ctx, *, booru='e621', query=[]): + async def _get_pool(self, ctx, *, destination, booru='e621', query=[]): def on_message(msg): if (msg.content.isdigit() and int(msg.content) == 0) or msg.content.lower() == 'cancel' and msg.author is ctx.author and msg.channel is ctx.channel: raise exc.Abort @@ -502,6 +502,8 @@ class MsG: == pools[int(selection.content) - 1]][0] await selection.delete() pool = {'name': tempool['name'], 'id': tempool['id']} + + await destination.trigger_typing() elif pool_request: tempool = pool_request[0] pool = {'name': pool_request[0]['name'], 'id': pool_request[0]['id']}