mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-12 16:50:10 +00:00
Change various timeouts to 5 minutes instead of 1
This commit is contained in:
parent
a9a9fb018e
commit
b4bc1f1263
4 changed files with 5 additions and 5 deletions
|
|
@ -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.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue