diff --git a/src/pluralkit/bot/commands/import_commands.py b/src/pluralkit/bot/commands/import_commands.py index 3e26b630..0ec16f12 100644 --- a/src/pluralkit/bot/commands/import_commands.py +++ b/src/pluralkit/bot/commands/import_commands.py @@ -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.") diff --git a/src/pluralkit/bot/commands/member_commands.py b/src/pluralkit/bot/commands/member_commands.py index d899ced8..6f49c096 100644 --- a/src/pluralkit/bot/commands/member_commands.py +++ b/src/pluralkit/bot/commands/member_commands.py @@ -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.") diff --git a/src/pluralkit/bot/commands/switch_commands.py b/src/pluralkit/bot/commands/switch_commands.py index c58ecc9e..b748ea43 100644 --- a/src/pluralkit/bot/commands/switch_commands.py +++ b/src/pluralkit/bot/commands/switch_commands.py @@ -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.") diff --git a/src/pluralkit/bot/commands/system_commands.py b/src/pluralkit/bot/commands/system_commands.py index 7b239017..2ce91a04 100644 --- a/src/pluralkit/bot/commands/system_commands.py +++ b/src/pluralkit/bot/commands/system_commands.py @@ -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.")