mirror of
https://github.com/myned/modufur.git
synced 2024-11-01 21:02:38 +00:00
Added "0" in addition to "cancel" to abort wait_for
This commit is contained in:
parent
fac0cc58f0
commit
1c212ee20d
1 changed files with 1 additions and 1 deletions
|
@ -510,7 +510,7 @@ class MsG:
|
|||
|
||||
async def _get_pool(self, ctx, *, booru='e621', query=[]):
|
||||
def on_message(msg):
|
||||
if 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
|
||||
elif msg.content.isdigit():
|
||||
if int(msg.content) <= len(pools) and int(msg.content) > 0 and msg.author is ctx.author and msg.channel is ctx.channel:
|
||||
|
|
Loading…
Reference in a new issue