1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-12-24 14:27:27 +00:00

Added typing indicator for multiple pools

This commit is contained in:
Myned 2017-10-29 17:55:40 -04:00
parent 9271210342
commit 23954252a2

View file

@ -478,7 +478,7 @@ class MsG:
return args 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): 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: 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 raise exc.Abort
@ -502,6 +502,8 @@ class MsG:
== pools[int(selection.content) - 1]][0] == pools[int(selection.content) - 1]][0]
await selection.delete() await selection.delete()
pool = {'name': tempool['name'], 'id': tempool['id']} pool = {'name': tempool['name'], 'id': tempool['id']}
await destination.trigger_typing()
elif pool_request: elif pool_request:
tempool = pool_request[0] tempool = pool_request[0]
pool = {'name': pool_request[0]['name'], 'id': pool_request[0]['id']} pool = {'name': pool_request[0]['name'], 'id': pool_request[0]['id']}