Change various timeouts to 5 minutes instead of 1

This commit is contained in:
Ske 2018-09-07 23:21:12 +02:00
parent a9a9fb018e
commit b4bc1f1263
4 changed files with 5 additions and 5 deletions

View File

@ -44,7 +44,7 @@ async def import_tupperware(ctx: CommandContext):
tupperware_page_embeds = []
tw_msg: discord.Message = await ctx.client.wait_for_message(channel=ctx.message.channel, timeout=60.0,
tw_msg: discord.Message = await ctx.client.wait_for_message(channel=ctx.message.channel, timeout=60.0 * 5,
check=ensure_account)
if not tw_msg:
return CommandError("Tupperware import timed out.")

View File

@ -162,7 +162,7 @@ async def member_delete(ctx: CommandContext):
"Are you sure you want to delete {}? If so, reply to this message with the member's ID (`{}`).".format(
member.name, member.hid))
msg = await ctx.client.wait_for_message(author=ctx.message.author, channel=ctx.message.channel, timeout=60.0)
msg = await ctx.client.wait_for_message(author=ctx.message.author, channel=ctx.message.channel, timeout=60.0 * 5)
if msg and msg.content.lower() == member.hid.lower():
await db.delete_member(ctx.conn, member_id=member.id)
return CommandSuccess("Member deleted.")

View File

@ -115,7 +115,7 @@ async def switch_move(ctx: CommandContext):
await ctx.client.add_reaction(confirm_msg, "")
reaction = await ctx.client.wait_for_reaction(emoji=["", ""], message=confirm_msg, user=ctx.message.author,
timeout=60.0)
timeout=60.0 * 5)
if not reaction:
return CommandError("Switch move timed out.")

View File

@ -128,7 +128,7 @@ async def system_link(ctx: CommandContext):
await ctx.client.add_reaction(msg, "")
await ctx.client.add_reaction(msg, "")
reaction = await ctx.client.wait_for_reaction(emoji=["", ""], message=msg, user=linkee, timeout=60.0)
reaction = await ctx.client.wait_for_reaction(emoji=["", ""], message=msg, user=linkee, timeout=60.0 * 5)
# If account to be linked confirms...
if not reaction:
return CommandError("Account link timed out.")
@ -212,7 +212,7 @@ async def system_delete(ctx: CommandContext):
"Are you sure you want to delete your system? If so, reply to this message with the system's ID (`{}`).".format(
system.hid))
msg = await ctx.client.wait_for_message(author=ctx.message.author, channel=ctx.message.channel, timeout=60.0)
msg = await ctx.client.wait_for_message(author=ctx.message.author, channel=ctx.message.channel, timeout=60.0 * 5)
if msg and msg.content.lower() == system.hid.lower():
await db.remove_system(ctx.conn, system_id=system.id)
return CommandSuccess("System deleted.")